i got the header source of uic and added my code but on make it gives following errors, i can't understand what it mean.
I have both qt3.3.4 and qt4.1.2 installed on my system but i don't think this should be any issue and i had make sure i use qt4.1.2 components.
make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o main.o main.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o MyDialog.o MyDialog.cpp
/usr/local/Trolltech/Qt-4.1.2/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... MyDialog.h -o moc_MyDialog.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o moc_MyDialog.o moc_MyDialog.cpp
moc_MyDialog.cpp:43: error: ‘staticMetaObject’ is not a member of ‘Ui_Dialog’
moc_MyDialog.cpp: In member function ‘virtual void* MyDialog::qt_metacast(const char*)’:
moc_MyDialog.cpp:59: error: ‘qt_metacast’ is not a member of ‘Ui_Dialog’
moc_MyDialog.
cpp: In member function ‘
virtual int MyDialog
::qt_metacall(QMetaObject::Call,
int,
void**)’
:moc_MyDialog.cpp:64: error: ‘qt_metacall’ is not a member of ‘Ui_Dialog’
make: *** [moc_MyDialog.o] Error 1
make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o main.o main.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o MyDialog.o MyDialog.cpp
/usr/local/Trolltech/Qt-4.1.2/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... MyDialog.h -o moc_MyDialog.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED ... -o moc_MyDialog.o moc_MyDialog.cpp
moc_MyDialog.cpp:43: error: ‘staticMetaObject’ is not a member of ‘Ui_Dialog’
moc_MyDialog.cpp: In member function ‘virtual void* MyDialog::qt_metacast(const char*)’:
moc_MyDialog.cpp:59: error: ‘qt_metacast’ is not a member of ‘Ui_Dialog’
moc_MyDialog.cpp: In member function ‘virtual int MyDialog::qt_metacall(QMetaObject::Call, int, void**)’:
moc_MyDialog.cpp:64: error: ‘qt_metacall’ is not a member of ‘Ui_Dialog’
make: *** [moc_MyDialog.o] Error 1
To copy to clipboard, switch view to plain text mode
Bookmarks