当前位置:网站首页>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;
}
边栏推荐
- What if the computer desktop icon has a small yellow lock?
- Deep browser rendering principles
- The core packages and middleware required for golang development cover all areas of the project and are worth collecting
- How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary question record (dghjkl)
- js卡通英文字母打字小游戏源码
- [Qt5] QT small software release
- Prescan quick start to master the road elements of lecture 15
- Plantuml Usage Summary
- QT uses semaphores to control threads (qsemaphore)
猜你喜欢

Prescan quick start to master the track editing path of Lecture 16

GD32使用ST的HAL库和GD官方库的一些体会
![[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

Characteristics of EMC EMI beads

一键开关机电路

Recommend a fully open source, feature rich, beautiful interface mall system

Puzzle (004.3) pattern puzzle

Es6: arrow function usage

Opencv's practical learning of credit card recognition (4)

对spark算子aggregateByKey的理解
随机推荐
Opentsdb time series database
Pytorch的冻结以及解冻
Yaml parameter configuration based on singleton mode
Redis of non relational database [jedis client +jedis connection cluster]
PostgreSQL is the world's most advanced open source relational database
After being accidentally dragged into QQ fraud group
Find out whether the number exists from the matrix
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary question record (dghjkl)
Detailed explanation of random number generated by random class
JS cartoon English alphabet typing game source code
Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit
uniapp的swiper动态设置current值不生效解决办法
Prescan quick start to proficient in lecture 17, speed curve editor
JS thoroughly understand this point
Deep browser rendering principles
Enum class
MySQL: what is the difference between like and regexp operations?
MySQL query error [err] 1046 - no database selected
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(八)
Recommend a fully open source, feature rich, beautiful interface mall system