ubuntu6.06+qt4.1.2
这个是我的编译环境。
我用designer-qt4做了一个界面后生成一个button.ui文件,但我怎么也不能将它转成.cpp文件更不用说编译成可执行文件了。
我只能生成.h文件:
$ uic -o form1.h button.ui //这步没有问题生成了form1.h文件
$ uic -i form1.h -o form1.cpp button.ui //这步就不行了,它只是显示了一下下面的东东
whf@wanghf:~/src/test/ui$ uic -i form1.h -o form1.cpp button.ui
Qt user interface compiler 4.1.2.
Usage: uic [OPTION]... <UIFILE>
-h, -help display this help and exit
-v, -version display version
-d, -dependencies display the dependencies
-o <file> place the output into <file>
-tr <func> use func() for i18n
-p, -no-protection disable header protection
上面的命令是在网上找的,那里错了呢??具体要怎么做呢?
另外我想问一下是不是生成.h .cpp文件后就可以用
qmake -project
qmake
make
命令生成可执行文件了。
[ 此贴被XChinux在2006-11-16 23:15重新编辑 ]