Results 1 to 14 of 14

Thread: Problem with Qt plugin system

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Mar 2009
    Posts
    72
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    7

    Default Re: Problem with Qt plugin system

    Quote Originally Posted by fullmetalcoder View Post
    Then I suppose my previous comment was accurate : QPluginLoader tries to cast the object to pkApplication using qobject_cast<> but as pkApplicationBase does not have the Q_INTERFACE macro this fails
    Yes but if I move the Q_INTERFACES macro into the pkApplicationBase body nothing changes (no example window appears when i launch the server application) and the pointer is always null.

    This is the error string returned by QPluginLoader:

    Qt Code:
    1. Cannot load library [...]/libexampleapp.so: ([...]/libexampleapp.so: undefined symbol: _ZN17pkApplicationBase16staticMetaObjectE)
    To copy to clipboard, switch view to plain text mode 
    Last edited by zuck; 19th March 2009 at 00:58.

Similar Threads

  1. Threads in Designer plugins
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 3rd January 2009, 20:19
  2. QtPlugins how to communicate between plugins?
    By BeS in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2008, 12:59
  3. Container plugins
    By Benne Gesserit in forum Qt Tools
    Replies: 4
    Last Post: 21st November 2008, 00:43
  4. Replies: 1
    Last Post: 31st October 2008, 15:35
  5. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2007, 00:19

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.