Results 1 to 10 of 10

Thread: qobject_cast fails across dynamic library boundaries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qobject_cast fails across dynamic library boundaries

    Could you show us how exactly did you try to use qobject_cast? What does this return when called in both DLLs?

    Qt Code:
    1. qDebug() << "I am a " << MatrixReal::staticMetaObject().className();
    2. const QMetaObject *mo = MatrixReal::staticMetaObject().superClass();
    3. while(mo){
    4. qDebug() << "It's superClass is" << mo->className();
    5. mo = mo->superClass();
    6. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Dec 2008
    Posts
    29
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qobject_cast fails across dynamic library boundaries

    I didn't see your question thread, so I've described the reason and solution of your (my ) problem in separate thread..

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.