看了C++ GUI Programming with Qt 4, Second Edition第五章第四节的例子创建了一个Iconeditor custom widget,并且在安装目录下的plugins/designer 目录里生成了iconeditorplugin.dll、iconeditorplugin.exp、iconeditorplugin.ilk、iconeditorplugin.lib和iconeditorplugin.pdb五个文件,想把它加到QT
designer里
在网上搜了一下,说是这样做
http://doc.trolltech.com/3.3/designer-manual-7.htmlAdding the Custom Widget to Qt Designer
Click Tools|Custom|Edit Custom Widgets to invoke the Edit Custom Widgets dialog.
1.Click New Widget so that we are ready to add our new widget.
2.Change the Class name from 'MyCustomWidget' to 'Vcr'.
3.Click the ellipsis (...) button to the right of the Headerfile line edit to invoke the file Open dialog. Locate vcr.h, select it, and click Open. It will now appear as the header file.
4.If you have a pixmap that you want to use to identify your widget on the toolbar click the ellipsis button to the right of Pixmap property. (The ellipsis button appears when you click in the Value part of the Properties list by a pixmap or iconSet property.)
In our example we have the file qt/tools/designer/examples/vcr/play.xpm which we'll use for this purpose.
5.Since we know the minimum sensible size for our widget we'll put these values into the Size Hint spin boxes. Enter a width of 80 (in the left hand spin box), and a height of 20 (in the right hand spin box).
但这个的版本是3.3.7,我用的是4.4.3,找不到“Tools|Custom|Edit Custom Widgets ”