PDA

View Full Version : compile time error porting Qt3 designer form to Qt4



ashukla
18th September 2007, 06:00
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!

wysota
18th September 2007, 10:59
Did you clean your project and remake it with qmake4 and make afterwards?

ashukla
20th September 2007, 04:16
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.

wysota
20th September 2007, 11:48
Could you show us the code of the ui?