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!
Re: compile time error porting Qt3 designer form to Qt4
Did you clean your project and remake it with qmake4 and make afterwards?
Re: compile time error porting Qt3 designer form to Qt4
Quote:
Originally Posted by
wysota
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.
Re: compile time error porting Qt3 designer form to Qt4
Could you show us the code of the ui?