当前位置:网站首页>[QT] QPushButton creation
[QT] QPushButton creation
2022-07-02 20:00:00 【Gentleman · forever】
Catalog
Two 、 Code application and running results
One 、 Function interpretation
1、 Create button
The header file :#include <QPushButton>
QPushButton * btn = new QPushButton;
btn->show();// Pop up the window by ejecting
Two 、 Code application and running results

// Create a button
QPushButton * btn = new QPushButton;
btn->show();// Pop up the window by ejecting
// Give Way btn Depending on widget Window
btn->setParent(this);
// Show text
btn->setText(" The first button ");
// Create a second button Create a window according to the size of the control
QPushButton * btn2 = new QPushButton(" The second button ", this);
// Move btn2
btn2->move(100,100);
// Set up btn2 Size
btn2->resize(50,50);
// Reset window size
resize(600,400);
// Set fixed window size
setFixedSize(600,400);
// Set the title of the window
setWindowTitle(" Hi hi harm ");边栏推荐
- Refactoring: improving the design of existing code (Part 2)
- Solution: vs2017 cannot open the source file stdio h main. H header document [easy to understand]
- RPD出品:Superpower Squad 保姆级攻略
- JASMINER X4 1U深度拆解,揭开高效省电背后的秘密
- [NLP] a detailed generative text Abstract classic paper pointer generator
- Istio1.12:安装和快速入门
- Educational codeforces round 129 (rated for Div. 2) supplementary problem solution
- 良心总结!Jupyter Notebook 从小白到高手,保姆教程来了!
- Automatic reading of simple books
- AcWing 181. Turnaround game solution (search ida* search)
猜你喜欢

Kt148a voice chip IC user end self replacement voice method, upper computer

Development skills of rxjs observable custom operator

burp 安装 license key not recognized

自动生成VGG图像注释文件

高并发下如何避免产生重复数据?

B-end e-commerce - reverse order process

rxjs Observable 自定义 Operator 的开发技巧

数据库模式笔记 --- 如何在开发中选择合适的数据库+关系型数据库是谁发明的?

Kt148a voice chip IC software reference code c language, first-line serial port

C language linked list -- to be added
随机推荐
AcWing 341. Optimal trade solution (shortest path, DP)
CRM Customer Relationship Management System
Taiwan SSS Xinchuang sss1700 replaces cmmedia cm6533 24bit 96KHz USB audio codec chip
MySQL function
Data Lake (XII): integration of spark3.1.2 and iceberg0.12.1
B-end e-commerce - reverse order process
【JS】获取hash模式下URL的搜索参数
for(auto a : b)和for(auto &a : b)用法
Kt148a voice chip IC software reference code c language, first-line serial port
Complete example of pytorch model saving +does pytorch model saving only save trainable parameters? Yes (+ solution)
JASMINER X4 1U深度拆解,揭开高效省电背后的秘密
One side is volume, the other side is layoff. There are a lot of layoffs in byte commercialization department. What do you think of this wave?
【QT】QPushButton创建
勵志!大凉山小夥全獎直博!論文致謝看哭網友
接口测试到底怎么做?看完这篇文章就能清晰明了
Shardingsphere jdbc5.1.2 about select last_ INSERT_ ID () I found that there was still a routing problem
KT148A语音芯片ic的用户端自己更换语音的方法,上位机
自动化制作视频
KT148A语音芯片ic的硬件设计注意事项
分享几个图床网址,便于大家分享图片