Results 1 to 5 of 5

Thread: Plugin Loading and Signal Handling in Qt4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Plugin Loading and Signal Handling in Qt4

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Plugin Loading and Signal Handling in Qt4

    Qt Code:
    1. class PluginInterface
    2. {
    3. public:
    4. virtual ~PluginInterface() {}
    5. virtual QObject* someObjectWithSignalsAndSlots() const = 0; // <--
    6. ...
    7. };
    8.  
    9. Q_DECLARE_INTERFACE(...)
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.