当前位置:网站首页>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;
}
边栏推荐
- OpenTSDB-时序数据库
- Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
- 单片机IO口控制12V电压通断,MOS和三极管电路
- Basic dictionary of deep learning --- activation function, batch size, normalization
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary question record (dghjkl)
- CarSim simulation quick start (XI) - Driver Model (1)
- PostgreSQL is the world's most advanced open source relational database
- [book club issue 13] Chapter 2 notes on the packaging format and coding format of video files
- [leetcode] 24. Exchange nodes in the linked list in pairs
- [reprint] man Rsync translation (Chinese Manual of Rsync command)
猜你喜欢
![[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

PMP practice once a day | don't get lost in the exam -7.13

Understand the propagation process of EMI electromagnetic interference through five diagrams - the influence of square wave steepness on high-frequency components, the spectrum graph from time sequenc

Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit

CarSim simulation quick start (10) - Modeling of braking system

Basic dictionary of deep learning --- activation function, batch size, normalization

XSS knowledge points and 20 character short domain name bypass

One key switch circuit

Meituan Er Mian: why does redis have sentinels?

03 | project deployment: how to quickly deploy a website developed based on the laravel framework
随机推荐
[environment configuration] ppyoole trains its own data set (for its own use)
Viewing vantage's self drive from the "three good" kitchen electricity standard and the value proposition of "serious life"
What if the computer file cannot be deleted?
What if you are prompted that your connection to this website is not a private connection?
SWM32系列教程5-ADC应用
CarSim simulation quick start (XIII) - steering system
2022/7/27 examination summary
Google and Stanford jointly issued a document: why do we have to use large models?
Use ffmpeg to generate single image + single audio streaming video in batches
C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
pyflink连接iceberg 实践
聊一聊数据库的行存与列存
[leetcode] 24. Exchange nodes in the linked list in pairs
JS cartoon English alphabet typing game source code
Qt多线程中槽函数在哪个线程里执行分析
What if the task manager is not fully displayed?
New generation cloud native message queue (II)
DCL singleton mode
Some experience of gd32 using Hal Library of ST and Gd official library
【13】 Adder: how to build a circuit like Lego (Part 1)?