当前位置:网站首页>Window 2 - > toolbar (28-1)
Window 2 - > toolbar (28-1)
2022-07-28 08:29:00 【Happy Jiajia】
window 2 -> The toolbar (28-1)
Qt Pass through QToolBar Create toolbars
QToolBar Key member functions of
void setFloatable(bool floatable);
void setMovable(bool movable);
void setIconSize(const QSize& iconSize);
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
QToolBar* tb = addToolBar("Tool Bar");
QAction* action = new QAction("", NULL);
tb->setFloatable(true);
tb->setMovable(false);
action->setToolTip("Open"); // Set the prompt
action->setIcon(QIcon(":/Res/open.png")); // Colon first , The reminder is in the resource file
tb->addAction(action);
QPushButton* b = new QPushButton("Button");
QLabel* l = new QLabel("Label");
QLineEdit* e = new QLineEdit();
tb->addWidget(b);
tb->addWidget(l);
tb->addWidget(e);
}
边栏推荐
- Deluxe H5 Tetris game source code
- Swm32 series tutorial 5-adc application
- OpenTSDB-时序数据库
- Rk3568 development board installation system startup
- Chairman tree review
- Viewing vantage's self drive from the "three good" kitchen electricity standard and the value proposition of "serious life"
- 基于单例模式的yaml参数配置
- Es6: arrow function usage
- Opentsdb time series database
- Melt cloud x chat, create a "stress free social" habitat with sound
猜你喜欢

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

protobuf 基本语法总结

@Documented 的作用
![In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]](/img/90/a3f56ef8f08a8735febba16af227f9.png)
In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]

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]

Qt使用信号量控制线程(QSemaphore)

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

Kubernetes技术与架构(七)

Information system project manager must recite the core examination site (41) risk management plan
随机推荐
Plantuml Usage Summary
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
What happens when you unplug the power? Gaussdb (for redis) dual life keeps you prepared
OSPF comprehensive experiment (7.12)
MySQL: what is the difference between like and regexp operations?
PMP practice once a day | don't get lost in the exam -7.13
Fxksmdb.exe process description
js信息提示框定时关闭
使用FFmpeg来批量生成单图+单音频的一图流视频
Prescan quick start to proficient in lecture 17, speed curve editor
一键开关机电路
js糖果消消乐小游戏源码
Qt使用信号量控制线程(QSemaphore)
Deluxe H5 Tetris game source code
Es6: arrow function usage
非关系型数据库之Redis【Jedis客户端+Jedis连接集群】
任务管理器中,显示的CPU速度大于它的最大速度【主频】
Autodesk desktop licensing service error 1067 handling method
How to close the blocked program process?
解决EMC、EMI传导干扰的八大方法