在论坛搜索了一把,看到一个类似的帖子,按照其方法做了一下,还不不行,所以再发个帖子问问,劳烦各位给解答解答,谢谢!
我按照《C++ GUI Programming with Qt 4, Second Edition》书中Chapter 2 Creating Dialogs 第三节 Rapid Dialog Design中的叙述做了个dialog,在运行时,按书中的描述是:
Now run qmake to create a .pro file and a makefile (qmake -project; qmake gotocell.pro). The qmake tool is smart enough to detect the user interface file gotocelldialog.ui and to generate the appropriate makefile rules to invoke uic, Qt's user interface compiler. The uic tool converts gotocelldialog.ui into C++ and puts the result in ui_gotocelldialog.h.
意思是运行qmake gotocell.pro就能自动调用uic工具将gotocelldialog.ui转换成C++代码,但是,我运行后没有生成相应的C++代码ui_gotocelldialog.h,请问这是为什么啊?
文件内容请见附件。
我是刚学Qt,第一次在贵坛发帖,没有积分,还请大家海涵,以后还请大家多多帮助。