当前位置:网站首页>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;
}
边栏推荐
- CarSim simulation quick start (XI) - Driver Model (1)
- How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
- Window 2 - > toolbar (28-1)
- Pytorch的冻结以及解冻
- 百度智能云九州区县大脑,描绘城乡新蓝图!
- Understand CDN
- Opentsdb time series database
- “蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)
- Plantuml Usage Summary
- The core packages and middleware required for golang development cover all areas of the project and are worth collecting
猜你喜欢

What happens when you unplug the power? Gaussdb (for redis) dual life keeps you prepared

After being accidentally dragged into QQ fraud group

解决EMC、EMI传导干扰的八大方法
![[Qt5] small software with 5 people randomly selected from the bid evaluation expert base](/img/ca/9f6bd6af45e2113c050edf3a65aaf2.png)
[Qt5] small software with 5 people randomly selected from the bid evaluation expert base

QT uses semaphores to control threads (qsemaphore)

Prescan quick start to proficient in lecture 17, speed curve editor

OSPF comprehensive experiment (7.12)

CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器
![[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

jquey的基础语法
随机推荐
Redis of non relational database [jedis client +jedis connection cluster]
[reprint] man Rsync translation (Chinese Manual of Rsync command)
Basic dictionary of deep learning --- activation function, batch size, normalization
Es6: arrow function usage
uniapp的swiper动态设置current值不生效解决办法
JS candy xiaoxiaole game source code
js卡通英文字母打字小游戏源码
Allure use
XSS知识点和20字符短域名绕过
Qt使用信号量控制线程(QSemaphore)
单片机IO口控制12V电压通断,MOS和三极管电路
What if the task manager is not fully displayed?
Tensorflow uses deep learning (II)
Mysql, how many columns can be used to create an index?
一键开关机电路
What if you are prompted that your connection to this website is not a private connection?
Prescan quick start to proficient in lecture 17, speed curve editor
See how Google uses pre training weights in target detection tasks | CVPR 2022
GD32使用ST的HAL库和GD官方库的一些体会
Use ffmpeg to generate single image + single audio streaming video in batches