Results 1 to 4 of 4

Thread: compile time error porting Qt3 designer form to Qt4

  1. #1
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question compile time error porting Qt3 designer form to Qt4

    Dear Everyone!
    I open the Qt3 dlgTextScroller.ui files into Qt4 and then save it.
    After saving I write main function to execute it.
    but it gives the following errors.

    moc_dlgtextscroller.cpp:51: error: ‘staticMetaObject’ is not a member of
    ‘Ui_dlgTextScroller’
    moc_dlgtextscroller.cpp: In member function ‘virtual void* dlgTextScroller::qt_metacast(const char*)’:
    moc_dlgtextscroller.cpp:67: error: ‘qt_metacast’ is not a member of ‘Ui_dlgTextScroller’
    moc_dlgtextscroller.cpp: In member function ‘virtual int dlgTextScroller::qt_metacall(QMetaObject::Call, int, void**)’:
    moc_dlgtextscroller.cpp:72: error: ‘qt_metacall’ is not a member of ‘Ui_dlgTextScroller’

    How to slve this?

    Thanks with regards!
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: compile time error porting Qt3 designer form to Qt4

    Did you clean your project and remake it with qmake4 and make afterwards?

  3. #3
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Re: compile time error porting Qt3 designer form to Qt4

    Quote Originally Posted by wysota View Post
    Did you clean your project and remake it with qmake4 and make afterwards?
    Yes! After cleaning the the .pro Makefile moc_ *.cpp & .o, I compile with qmake4 & then make it. But it gives the same error.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: compile time error porting Qt3 designer form to Qt4

    Could you show us the code of the ui?

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.