Results 1 to 3 of 3

Thread: CMake3.6 / VS2015 / Qt5.7 - lost in function-pointer based signals/slots across DLLs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: CMake3.6 / VS2015 / Qt5.7 - lost in function-pointer based signals/slots across D

    I'm not so sure your class declaration is correct - you add the myWidget_DLL_EXPORT macro, but that will only be defined when you are building the DLL (i.e. myWidget_DLL defined). At import time, this macro is undefined and should lead to a compile error. I don't see any place where you use myWidget_DLL_IMPORT.

    And you have remembered to add the Q_OBJECT macro to your class definition, right?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    NameRakes (7th January 2017)

Similar Threads

  1. Replies: 3
    Last Post: 12th November 2014, 08:38
  2. Replies: 2
    Last Post: 18th April 2013, 12:15
  3. function pointers as parameters in signals and slots
    By ggdev001 in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2013, 22:19
  4. Segmentation fault and lost ui pointer?
    By poporacer in forum Newbie
    Replies: 0
    Last Post: 18th December 2010, 23:42
  5. lost signals ?
    By deepinlife in forum Qt Programming
    Replies: 3
    Last Post: 17th June 2008, 10:11

Tags for this 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.