01helloworld
来源:互联网 发布:怎样在u盘上编程 编辑:程序博客网 时间:2024/06/06 09:04
#include<QtGui/QApplication>#include<QtGui/QWidget>#include<QtGui/QLabel>#include<QtCore/QTextCodec>#include<QtGui/QPushButton>#include<QtGui/QVBoxLayout>int main(int argc,char *argv[]){ QApplication app(argc,argv); QTextCodec::setCodecForTr(QTextCodec::codecForName("gb18030")); QWidget *pWidget = new QWidget; QLabel label1(pWidget); label1.setText("One World,One Dream"); QPushButton *pButton = new QPushButton(QObject::tr("关闭"),pWidget); QVBoxLayout *pLayout = new QVBoxLayout; pLayout->addWidget(&label1); pLayout->addWidget(pButton); pWidget->setLayout(pLayout); QObject::connect(pButton,SIGNAL(clicked()),pWidget,SLOT(close())); pWidget->show(); return app.exec();}
阅读全文
0 0
- <01>HelloWorld
- 01helloworld
- android控件01 HelloWorld
- C#笔记01:helloworld!
- Hibernate HelloWorld-01
- Spring-01-HelloWorld
- Spring-01-HelloWorld
- react.js-01-HelloWorld
- spring的HelloWorld<01>
- Spring-01--HelloWorld
- DPDK Samples 01HelloWorld
- 01-C#HelloWorld程序
- helloworld
- HelloWorld
- helloworld
- helloworld
- HelloWorld
- HelloWorld
- 用java学算法(一) 快速幂与大数快速幂
- 更新参数的一阶低通滤波算法 C++
- 通过技术手段 “干掉” 视频APP里讨厌的广告之(腾讯视频)
- 多线程通信
- Introducing Elixir, 2nd Edition.pdf 英文原版 免费下载
- 01helloworld
- 常用排序算法之折半插入排序
- java基础知识总结(3)(循环语句)
- PAT 乙级 1010 C语言
- Python 工程
- MySQL小试牛刀
- Pro Functional PHP Programming.pdf 英文原版 免费下载
- 实用工具
- java基础知识总结(4)(Random、数组)