Is it possible to load Qt Designer custom widget plugin just like what does in Qt Designer?



  • I'd like to load Qt Designer custom widget plugins (which implement QDesignerCustomWidgetInterface interface) and show a list of them in my app, just like what does in Qt Designer WidgetBox.

    How to do that?

    I tried to #include <QtUiPlugin/customwidget.h> in my application, but it don't compile. Error:
    use undefined class QDesignerCustomWidgetInterface.
    And my project profile is like this:
    QT += core gui designer
    TEMPLATE = app
    0_1495630315942_upload-1c69e2c8-ca93-4b5a-83e3-991167de0061


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.