• 6687阅读
  • 1回复

【提问】kdevelop里面怎么用qt生成的.ui啊? [复制链接]

上一主题 下一主题
离线dxwang
 

只看楼主 倒序阅读 楼主  发表于: 2005-11-29
kdevelop里面怎么用qt生成的.ui啊?
已经用下面的命令 生成了.h .cpp
uic form1.ui > form1.h
uic -i form1.h form1.ui -o form1.cpp
按照12.2 manual做的
12.2 Using your new dialog inside KDevelop
Next, we create a class inside KDevelop that will derive from the class created with the Designer. From the "Project" menu, choose "New Class". Enter "KTest" as classname. We we derive from KTestDlg, enter "KTestDlg" in "Baseclass". As QDialog (the baseclass for our Dialog) derives from QWidget, you also need to enable the "generate a QWidget-Childclass" checkbox. This are all information KDevelop requires. If you choose "OK", KDevelop will create two files called "ktest.cpp" and "ktest.h" which hold the "KTest" class that derives from "KTestDlg". Note that the "#include" statement for "ktestdlg.h" has already been inserted by KDevelop. Now you can simply implement all your functions and use the class inside your project.

编译有错误,请问还要在makefile里加些什么啊, 格式又是什么呢,谢谢各位!
[ 此贴被XChinux在2005-11-29 22:25重新编辑 ]
每天进步一点点
离线pimpyan

只看该作者 1楼 发表于: 2005-11-30
用qmake重新生成project和makefile呢?
快速回复
限100 字节
 
上一个 下一个