Hi I have read this but cannot get it to work (I am using Qt5.1.1 with Visual Studio I have a library called Widgets.dll that contains 1 class declared as #include <QLabel> #include "widgets_global.h"
class WIDGETS_EXPORT MyLabel : public QLabel { Q_OBJECT public: MyLabel(QWidget *parent); ~MyLabel(); private: }; I have set up my plugin project so that it can see the header file for MyLabel and can see the Widgets.lib The plugin project builds without error but is not visible in Designer Can anyone see the reason for this? Thanks From: Harish Surana [mailto:suran...@gmail.com] Sent: 03 December 2013 10:20 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] using designer plugin in application Yes it is technically possible to make the widgets accessible to Qt Designer without linking widgets dll against QtDesigner4.dll. Some possible approaches are described here: http://qt-project.org/doc/qt-4.8/designer-creating-custom-widgets.html (see the section "Splitting up the Plugin"). On Tue, Dec 3, 2013 at 10:31 AM, Graham Labdon <graham.lab...@avalonsciences.com<mailto:graham.lab...@avalonsciences.com>> wrote: Hi I have developed a number of Qt Designer plugins and can use them in my applications. But obviously I need my apps to link against the plugin library which means when I deploy the application I need to deploy the plugin library as well. What I would like is for widget classes to be compiled into one library that both the application and the designer plugin can use but I have been unable to achieve this. Is this possible? _______________________________________________ Interest mailing list Interest@qt-project.org<mailto:Interest@qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest