Qt HelloWorld 使用button显示
2014-08-29 22:28
411 查看
#include <QApplication>
#include <QPushButton>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton *button = new QPushButton("Quit");
QObject::connect(button,SIGNAL(clicked()),&app,SLOT(quit()));
button->show();
return app.exec();
}
#include <QPushButton>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton *button = new QPushButton("Quit");
QObject::connect(button,SIGNAL(clicked()),&app,SLOT(quit()));
button->show();
return app.exec();
}
相关文章推荐
- Qt&nbsp;HelloWorld&nbsp;用label显示
- 我的第一个Qt程序:使用Qt creator和Qt designer完成"HelloWorld"和计算圆面积的程序设计
- 在VS2008中使用Qt编程--Qt HelloWorld(转)--天空16度蓝
- qt-designer使用教程1--HelloWorld.txt
- 使用mysql报错显示Reason: im…
- cocos2d 游戏开发:Cocos2d v3 "hello world"+显示飞船
- 在 Python中使用 cout << 'Hello,world!' << endl
- Qt关于dll的生成和使用(Qt C++ li…
- cocos2d 游戏开发:Cocos2d v3 "hello world"+显示飞船
- Qt关于dll的生成和使用(Qt C++ li…
- 使用空格或者  在IE、firefox、chrome浏览器中显示距离不一致
- PHP是如何显示“hello&nbsp;word”的?
- Qt contextMenu的创建和使用
- <Linux+Qt> Qt基本Hello,World解释
- latex hello world
- c程序中不使用分号输出"Hello, world"
- QT 使用label和commandlinkbutton循环显示图片
- 第一个驱动helloworld&nbsp;module加载i…
- 第一个驱动helloworld&nbsp;module加载i…
- 第一个hello&nbsp;world驱动模块