Results 1 to 4 of 4

Thread: Problem using QWinWidget..

  1. #1
    Join Date
    Oct 2009
    Location
    Sweden
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem using QWinWidget..

    Hi
    I'm trying to use QtWinMigrate and i have run in to linking problems.
    As far as i can se my project settings are correct i have search alot on the error message but i have not found a solution.

    It's a VS 2005 project and project properties are:
    "Additional Include Directories" is set to $(QTDIR)\include\QtWinMigrate
    and "Additiona Dependencies" have $(QTDIR)\lib\QtSolutions_MFCMigrationFramework-2.8d.lib

    the error i get is:
    error LNK2001: unresolved external symbol "public: static struct QMetaObject const QWinWidget::staticMetaObject" (?staticMetaObject@QWinWidget@@2UQMetaObject@@B)

    is there anyone that might know what i'v missed?

    Regards Robert

  2. #2
    Join Date
    Oct 2009
    Location
    Sweden
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem using QWinWidget..

    Could it bee a calling conversion issue, or nothing gets exported from the QtSolutions_MFCMigrationFramework-2.8d.lib??

    anyone?

  3. #3
    Join Date
    Sep 2008
    Posts
    54
    Thanks
    3
    Thanked 10 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Re: Problem using QWinWidget..

    Using some preprocessor defines solved this problem:

    QT_QTWINMIGRATE_IMPORT

    QT_DLL

    QT_GUI_LIB

    QT_CORE_LIB

    QT_THREAD_SUPPORT

    Regards,

    Marcel

  4. #4
    Join Date
    Aug 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Cool Re: Problem using QWinWidget..

    Adding QT_QTWINMIGRATE_IMPORT to preprocessor definition did the trick!

Similar Threads

  1. Replies: 1
    Last Post: 6th July 2009, 13:48
  2. Replies: 1
    Last Post: 23rd April 2009, 09:05
  3. Replies: 19
    Last Post: 3rd April 2009, 23:17
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.