Results 1 to 9 of 9

Thread: Signals and Slots in dll

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Signals and Slots in dll

    It is Q_CC_MSVC and not QT_CC_MSVC
    You maybe have not set BUILD_QGRID when building your dll (as the error states you're using dllimport == Q_DECL_IMPORT).
    Please read about importing / exporting symbols in your favorite msvc book / at msdn.mcrosoft.com

  2. #2
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Signals and Slots in dll

    Sorry my mistake (Q and QT misspell),

    i defined BUILD_QGRID in .pro file as DEFINES += BUILD_QGRID
    also it shows in the project settings as /D "BUILD_QGRID"

    the problem is due to the Q_OBJECT directive.

    if i comment the line and the slots in the class it works fine.

    also the error is stating "definition of dllimport static data member not allowed"

    and warnings regarding exporting. i didn't got these errors.

    is there some other way to define the BUILD_QGRID, like in the cpp file ?
    Do what u r afraid to do, and the death of fear is sure.

Similar Threads

  1. Signals and Slots Problem
    By GenericProdigy in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2009, 09:06
  2. Signals and Slots
    By 83.manish in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 10:31
  3. Problem with SpinBox signals and slots
    By ramstormrage in forum Newbie
    Replies: 4
    Last Post: 2nd May 2008, 01:45
  4. signals and slots in plugins
    By anderl in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 13:57
  5. Problem with Signals and Slots
    By Kapil in forum Newbie
    Replies: 11
    Last Post: 15th February 2006, 11:35

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.