Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. plugin verification data mismatch
Forum Updated to NodeBB v4.3 + New Features

plugin verification data mismatch

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 602 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mistralegnaM Offline
    mistralegnaM Offline
    mistralegna
    wrote on last edited by mistralegna
    #1

    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 !

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved