[Interest] [Qt-interest] Designer plugins?

eike.ziller at nokia.com eike.ziller at nokia.com
Fri Dec 2 09:32:44 CET 2011


On 30 Nov 2011, at 23:09, ext 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?

Only one Q_EXPORT_PLUGIN macro per library is allowed.
But you can put multiple custom widgets into a single plugin,
from http://doc.qt.nokia.com/4.7-snapshot/qtdesigner-components.html#creating-custom-widget-plugins :
"If you want to include several custom widget plugins in the same library, you must in addition subclass QDesignerCustomWidgetCollectionInterface"

An example how that works would e.g. be the custom widget collection we have for Qt Creator development:
https://qt.gitorious.org/qt-creator/qt-creator/trees/master/src/tools/qtcreatorwidgets

Br, Eike

-- 
Eike Ziller
Principal Software Engineer

Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




More information about the Interest mailing list