首页| 论坛| 消息

回复: 【提问】helloworld编译不成功,什么原因
#11 [XChinux 08-29 19:51]
把#include "helloworldForm.h"
这句去掉
#12 [aiken 08-30 10:40]
楼住用kdevelop的时候应该建立qmake工程 还有检查编译器option是否加入qt支持
我遇到类似的情况都是linker不知道lib的地址 在kedevelop右侧的设置加入qt的include地址和lib的地址
#13 [gongyh 09-01 13:24]
我编译了你的程序,没有问题。在 4.00上只要去了a.setMainWidget( &hello );就可以了
#include
#include

int main( int argc, char **argv)
{
QApplication a( argc, argv);
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
//a.setMainWidget( &hello );
hello.show();
return a.exec();
}
#14 [acefunware 09-01 16:20]
是少了头文件吧
lib的路径不对吧
代码没什么错啊
可能是你机子的环境设置的问题

<< 1 2 3 >> (3/3)

回复 发表
主题 版块