Hi,
Anyone can post a tutorial, which describe how we can load plugins and connect signal and slots from main program to plugin in Qt4.
Printable View
Hi,
Anyone can post a tutorial, which describe how we can load plugins and connect signal and slots from main program to plugin in Qt4.
I think it may help you.
http://doc.trolltech.com/4.3/plugins-howto.html http://doc.trolltech.com/4.3/tools-plugandpaint.html
A plugin interface cannot declare signals and slots because it cannot inherit QObject. But you can make the plugin interface return an object which provides those signals and slots.
Thanks.
Can you post a simple example code, which describe how to make a plugin interface, which return an object that provides signals and slots.
Code:
class PluginInterface { public: virtual ~PluginInterface() {} ... }; Q_DECLARE_INTERFACE(...)