当前位置:网站首页>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);
}
边栏推荐
- js卡片层叠样式的图片切换js特效
- 单片机IO口控制12V电压通断,MOS和三极管电路
- Kubernetes技术与架构(七)
- What if the task manager is not fully displayed?
- What if the computer desktop icon has a small yellow lock?
- How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
- [chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial
- Technology sharing | common proxy tools for interface testing
- mysql,我们如何得到受查询影响的行数?
- 非关系型数据库之Redis【redis安装】
猜你喜欢

Understanding of spark operator aggregatebykey

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

GD32使用ST的HAL库和GD官方库的一些体会

Prescan quick start to master the road elements of lecture 15

Deep browser rendering principles

解析树形结构 js
![Chapter 01 introduction of [notes of Huashu]](/img/11/cc405a730822305f02f05678f6a9d1.png)
Chapter 01 introduction of [notes of Huashu]

Meituan Er Mian: why does redis have sentinels?

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

【17】 Establish data path (upper): instruction + operation =cpu
随机推荐
Viewing vantage's self drive from the "three good" kitchen electricity standard and the value proposition of "serious life"
How do we run batch mode in MySQL?
解决EMC、EMI传导干扰的八大方法
Prescan quick start to master the road elements of lecture 15
Protobuf basic grammar summary
js糖果消消乐小游戏源码
See how Google uses pre training weights in target detection tasks | CVPR 2022
Exception handling in SQL Server
Prescan quick start to master the transportation elements in lesson 14, prescan
How to build the protection system of class protection technology of 2022 series of ISO compliance (Part I)
Redis of non relational database [jedis client +jedis connection cluster]
MySQL: what is the difference between like and regexp operations?
Enum class
Es6: template string
Recommend a fully open source, feature rich, beautiful interface mall system
MySQL query error [err] 1046 - no database selected
Pytorch的冻结以及解冻
JS thoroughly understand this point
How to understand the adjective prefix of socket: "connection oriented" and "connectionless"
MCU IO port controls 12V voltage on and off, MOS and triode circuit