博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
10.QT程序框架与connect
阅读量:4546 次
发布时间:2019-06-08

本文共 485 字,大约阅读时间需要 1 分钟。

1 MainWindow::MainWindow(QWidget *parent) : 2     QMainWindow(parent), 3     ui(new Ui::MainWindow) 4 { 5     ui->setupUi(this); 6     //设置最小大小 7     this->setMinimumSize(200,100); 8  9     QPushButton *push=new QPushButton("quit",this);10     //设置大小和位置11     push->setGeometry(64,40,76,33);12     //设置字体13     push->setFont(QFont("Times",25,QFont::Bold));14     //程序结构15     connect(push,SIGNAL(clicked(bool)),qApp,SLOT(quit()));16 }

 

转载于:https://www.cnblogs.com/xiaochi/p/8744820.html

你可能感兴趣的文章
String.Join重载String.Join 方法 (String, String[], Int32, Int32)
查看>>
OJ常见问题及必须认识的对拍处理水题
查看>>
Python之路【第三篇】:Python基础(二)
查看>>
登陆官方谷歌及GMAIL的方法
查看>>
(yiyan)玩转异地恋
查看>>
谷歌Chrome浏览器开发者工具的基础功能
查看>>
字符编码
查看>>
Leetcode: Linked List Cycle
查看>>
java书籍
查看>>
MySQL++简介
查看>>
HTML5实现IP Camera网页输出 分类: HTML5 ...
查看>>
windows电脑常用必备软件
查看>>
打包部署到tomcat
查看>>
第六课 链接学习
查看>>
Mysql索引PRIMARY、NORMAL、UNIQUE、FULLTEXT 区别和使用场合
查看>>
海量积分数据实时排名算法
查看>>
SQL server Error Number
查看>>
select2 插件
查看>>
MyEclipse 中文乱码
查看>>
SpringAOP03 项目脚手架、自定义注解、织入切面、引介增强
查看>>