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.
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
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
liquid (25th January 2008)
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.
J-P Nurmi
liquid (25th January 2008)
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.
Qt Code:
class PluginInterface { public: virtual ~PluginInterface() {} ... }; Q_DECLARE_INTERFACE(...)To copy to clipboard, switch view to plain text mode
J-P Nurmi
Bookmarks