[Interest] Designer plugins?

Andreas Pakulat apaku at gmx.de
Wed Nov 30 23:39:24 CET 2011


On 30.11.11 14:09:54, Jason H wrote:
> I have several classes I am wanting to put into Qt Designer. However whenever I use Q_EXPORT_PLUGIN2() I get several errors after the first time I use it.
> In function 'qt_plugin_query_verification_data':
> multiple definition of 'qt_plugin_query_verification_data'
> 
> It seems I can't link all these classes together in a single library?

You can, but you need to export only a single plugin. A single designer
plugin can supply multiple widgets via the collection interface:
http://doc.qt.nokia.com/4.7-snapshot/qdesignercustomwidgetcollectioninterface.html

Andreas




More information about the Interest mailing list