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
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: qobject_cast fails across dynamic library boundaries

    Could you show relevant pieces of the code?
    J-P Nurmi

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 163 Times in 151 Posts

    Default Re: qobject_cast fails across dynamic library boundaries

    Search the forum for other threads on this topic.

    Make sure that the header of the class you wish to qobject_cast to, is not processed by moc in both the DLLs (i.e. it must not be in both .pro files' HEADERS sections).

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.