首页| 论坛| 消息

回复: 【提问】才学QT。这么简单的程序在错了?在kdevelop下编译出错~
#11 [zeckey 02-11 23:45]
#include
#include
#include
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QWidget mainwindows;

mainwindows.setMinimumSize(200, 100);
mainwindows.setMaximumSize(200, 100);
QPushButton hello("Hello magicoy!", &mainwindows);
hello.setGeometry(20, 20, 160, 60);
a.setMainWidget(&mainwindows);
mainwindows.show();
return a.exec();
}

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

回复 发表
主题 版块