当前位置:网站首页>Creation of status bar (29)
Creation of status bar (29)
2022-07-28 08:29:00 【Happy Jiajia】
Creation of status bar (29)
The left area of the status bar is used to output real-time messages
The right side is used to set permanent messages
addWidget Add components in the left half of the status bar
addPermanentWidget Add components in the right half of the status bar
statusBar(); // by qt Member function of , Used to create statusBar
bool MainWindow::initStatusBar()
{
bool ret = true;
QStatusBar* sb = statusBar();
QLabel* label = new QLabel("D.T.Software");
if( label != NULL )
{
label->setMinimumWidth(200);
label->setAlignment(Qt::AlignCenter);
sb->addPermanentWidget(label);
}
else
{
ret = false;
}
return ret;
}
边栏推荐
- Prescan quick start to master the road elements of lecture 15
- [300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)
- 本人男,27岁技术经理,收入太高,心头慌得一比
- 网口网络水晶头RJ45、POE接口定义线序
- Parse tree structure JS
- Chapter 01 introduction of [notes of Huashu]
- What if you are prompted that your connection to this website is not a private connection?
- 金属质感登录框样式
- c语言中函数的介绍(血书20000字!!!!)
- uniapp上下滑屏切换支持视频和图片轮播实现,类似抖音效果
猜你喜欢

【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(八)

Swm32 series tutorial 5-adc application

业务数字化飞速奔跑,管理数字化亟待出发

C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
![[leetcode] 24. Exchange nodes in the linked list in pairs](/img/06/af8cffd306777b14a4989e638f5866.png)
[leetcode] 24. Exchange nodes in the linked list in pairs

c语言中函数的介绍(血书20000字!!!!)
![[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6](/img/08/b892bd6c14d5ba3691f9b7def29c35.png)
[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6

sql server时间字段排序
![MySQL query error [err] 1046 - no database selected](/img/32/7d877571397c1e2024ec488b783e87.png)
MySQL query error [err] 1046 - no database selected
![[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download](/img/6d/870add6179f0e3a2f9b719f79594f3.png)
[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download
随机推荐
CarSim simulation quick start (10) - Modeling of braking system
XSS knowledge points and 20 character short domain name bypass
C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
Spiral matrix
[reprint] man Rsync translation (Chinese Manual of Rsync command)
Mysql中有哪些不同的表格?
聊一聊数据库的行存与列存
Prescan quick start to master the road elements of lecture 15
Chairman tree review
jquey的基础语法
pyflink连接iceberg 实践
Es6: template string
Talk about synchronous, asynchronous, blocking and non blocking
Yaml parameter configuration based on singleton mode
How do we run batch mode in MySQL?
Tensorflow uses deep learning (II)
豪华版h5俄罗斯方块小游戏源码
uniapp的swiper动态设置current值不生效解决办法
GD32使用ST的HAL库和GD官方库的一些体会
@The role of documented