plugin verification data mismatch
-
Hello to all of you !
I have a strange problem declaring a collection of designer plugins.
I have several designer plugins, who work well individually. Now, I'd like to group them using a collection of plugins, such as QDesignerCustomWidgetsCollectionInterface.
However, when I do this, the designer doesn't want to load the plugins. Instead, I have an error message : "plugin verification data mismatch". And another one saying that the collection plugin could not be loaded because of the undefined symbol corresponding to the single plugin library.
I use Qt 5.5.0.
Here is an excerpt of my code:
PluginClassName.hpp:
class QDESIGNER_WIDGET_EXPORT PluginClassName : public QObject, public QDesignerCustomWidgetInterface { Q_OBJECT Q_INTERFACES(QDesignerCustomWidgetInterface) ... };
WidgetsCollection.hpp:
class WidgetsCollection: public QObject, public QDesignerCustomWidgetCollectionInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface") Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) ... private: QList<QDesignerCustomWidgetInterface*> m_allWidgets; };
WidgetsCollection.cpp:
WidgetsCollection::WidgetsCollection(QObject* parent) : public QObject(parent) { m_allWidgets << new PluginClassName(this); }
Thanks a lot for your help !