|
最近在<<按照C++ GUI QT4编程>>学qt,用QT Designer设计了界面,保存为xxxx.ui文件,然后使用qmake-qt4 -project命令生成xxxx.pro文件,使用qmake-qt4命令生成Makefile时,提示uic: File generated with too old version of Qt Designer,我没管它,继续用make时提示错误
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o main.o main.cpp
main.cpp: In function ‘QWidget* create_gotocelldialog(QWidget*, const char*, uint)’:
main.cpp:5: error: expected type-specifier before ‘gotocelldialog’
main.cpp:5: error: cannot convert ‘int*’ to ‘QWidget*’ in return
main.cpp:5: error: expected ‘;’ before ‘gotocelldialog’
main.cpp:5: error: ‘gotocelldialog’ was not declared in this scope
make: *** [main.o] Error 1
希望大家帮帮忙,是哪里出了问题? |
|