Results 1 to 14 of 14

Thread: Multiple inherittance in plugins

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Thanks
    24
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Multiple inherittance in plugins

    Quote Originally Posted by fullmetalcoder View Post
    I think I've already answered this in another threads of yours but anyway :
    1. plugin interfaces must be abstract classes (so no inheritance from non-abstract classes, and especially not from QObject)
    2. multiple inheritance needs so called virtual inheritance in ancestor classes
    3. by design, multiple inheritance from QObject is IMPOSSIBLE so just forget about it and find another design...
    Hope this helps.
    Hmm... so in this case I should attempt to use boost signals and slots rather than Qt signals and slots for my plugin interface? The only reason I wanted QObject was for signals and slots.

    Alternatively, I suppose I could put the signals and slots into my plugin classes and use QMetaObject to parse all the available methods for signals and slots... but that seems a lot of effort. Any other way of doing something similar?
    Last edited by KShots; 20th April 2007 at 19:46.
    Life without passion is death in disguise

Similar Threads

  1. Qt plugins - how to do a libtool-style autoload
    By KShots in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2007, 12:40
  2. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32
  3. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  4. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 14:01
  5. Replies: 25
    Last Post: 15th January 2006, 00:53

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.