当前位置:网站首页>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;
}
边栏推荐
- Record a MYCAT connection and solve the problems of communications link failure
- Mysql, how many columns can be used to create an index?
- 【13】 Adder: how to build a circuit like Lego (Part 1)?
- Draw.io image saving path settings
- Basic dictionary of deep learning --- activation function, batch size, normalization
- Google and Stanford jointly issued a document: why do we have to use large models?
- Qt使用信号量控制线程(QSemaphore)
- 基于单例模式的yaml参数配置
- 对spark算子aggregateByKey的理解
- Allure use
猜你喜欢
![Redis of non relational database [detailed setup of redis cluster]](/img/0b/bd05fb91d17f6e0dc9f657a4047ccb.png)
Redis of non relational database [detailed setup of redis cluster]

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

The fourth phase (2021-2022) research on the implementation of cloud native technology in traditional industries - central state-owned enterprises was officially released

Chairman tree review

Swm32 series tutorial 5-adc application

本人男,27岁技术经理,收入太高,心头慌得一比

XSS知识点和20字符短域名绕过

【13】 Adder: how to build a circuit like Lego (Part 1)?
![[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial](/img/67/5373c45716ade5fbd1d3a980d8e5da.png)
[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial

Kubernetes技术与架构(七)
随机推荐
网口网络水晶头RJ45、POE接口定义线序
Kubernetes技术与架构(七)
Freezing and thawing of pytoch
Autodesk desktop licensing service error 1067 handling method
Solve the inherent defects of CNN! Common CNN architecture ccnn is coming | icml2022
Redis of non relational database [detailed setup of redis cluster]
记录一次mycat连接Communications link failure问题解决
03 | project deployment: how to quickly deploy a website developed based on the laravel framework
Google and Stanford jointly issued a document: why do we have to use large models?
CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器
Allure use
[leetcode] 24. Exchange nodes in the linked list in pairs
Mysql中有哪些不同的表格?
A group of South University students rely on science and technology to go to sea, with an annual income of 1billion
js卡片层叠样式的图片切换js特效
Window 2 - > toolbar (28-1)
Qt多线程中槽函数在哪个线程里执行分析
Prescan quick start to proficient in lecture 17, speed curve editor
How do we run batch mode in MySQL?
Oracle local network service