Results 1 to 12 of 12

Thread: staticMetaObject

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jan 2010
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: staticMetaObject

    Small addition:
    if you already have big project where you get such errors (I think it only could happens if you are changing yours projects from qt3 to qt4) - just use for parent classes different macro (not like for the children) , where you got errors - thats all . For exapmle I added for all parents which gives me LNK2001 error :
    add to parent classes from same dll ( in dll project property add to C/C++ ->Prprocessor->Preprocessor Definitions : DVL_DVL2_DLL_API; ):

    #include "dllDefines.h"

    class DVL_DVL2_API someParentClassName{...};

    dllDefines.h :

    #ifdef DVL_DVL2_DLL_API
    #define DVL_DVL2_API __declspec(dllexport)
    #else
    #define DVL_DVL2_API __declspec(dllimport)
    #endif
    Last edited by dresha48; 13th May 2011 at 11:35.

Similar Threads

  1. Dereferencing a NULL Pointer for staticMetaObject?
    By hyling in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2006, 00:29

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.