sdhgood 发表于 2013-4-13 15:46:02

uic: File generated with too old version of Qt Designer

最近在<<按照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: *** Error 1
希望大家帮帮忙,是哪里出了问题?

美丽天使不爱你 发表于 2013-4-13 16:26:55

你用Qt4嘛!这些命令都不用了,你这些都多老啦!初学的话建议你用那个!我就是用的那个!

亚瑟王 发表于 2013-4-15 09:13:46

天嵌科技提供了qt4的开发教程的,使用qt-creater来做开发。
页: [1]
查看完整版本: uic: File generated with too old version of Qt Designer