当前位置:网站首页>After adding qmenu to qtoolbutton and QPushButton, remove the triangle icon in the lower right corner
After adding qmenu to qtoolbutton and QPushButton, remove the triangle icon in the lower right corner
2022-04-23 05:28:00 【Oriental forgetfulness】
QToolButtom and QPushButtom add to QMenu The icon in the lower right corner will appear ,
QMenu* menu = new QMenu(this);
QAction* ac1 = new QAction(“1”,menu);
QAction* ac2 = new QAction(“2”,menu);
menu->addAction(ac1);
menu->addAction(ac2);
QToolButton* m_btn = new QToolButton(this);
m_btn->setPopupMode(QToolButton::InstantPopup);
m_btn->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
m_btn->setMenu(menu);
Here's the picture .

The removal method is as follows :
m_btn->setStyleSheet(“QToolButton::menu-indicator{image:none;}”);
版权声明
本文为[Oriental forgetfulness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220543307422.html
边栏推荐
- Output string in reverse order
- TSlint注释忽略错误和RESTful理解
- egg中的cors和proxy(づ ̄3 ̄)づ╭~踩坑填坑的过程~ToT~
- 可执行程序执行流程
- 五一劳动节期间什么理财产品会有收益?
- egg的static的前缀是可以修改惹,靴靴
- Interpretation of common SQL statements
- Double click The jar package cannot run the solution
- what is wifi6?
- Project manager's thinking mode worth trying: project success equation
猜你喜欢
Basic knowledge of redis

Devops life cycle, all you want to know is here!

2021-09-28

Nécessité de précharger les cookies dans le sélénium

Traversal array, object parent-child communication props / $emit

2021-11-01

Quick app bottom navigation bar

Use of ES6 array

创建进程内存管理copy_mm - 进程与线程(九)

Project manager's thinking mode worth trying: project success equation
随机推荐
Nécessité de précharger les cookies dans le sélénium
Click the Add button - a box appears (similar to adding learning experience - undergraduate - Graduate)
Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
Multiple mainstream SQL queries only take the latest one of the data
The annual transaction volume of the app store is US $1 million, and only 15% commission is paid. Small and medium-sized developers are very contradictory
2021-09-27
Cloud computing and cloud native architecture design of openshift
d. TS --- for more detailed knowledge, please refer to the introduction on the official website (chapter of declaration document)
What are the most popular recruitment technical skills in 2022? You can't think of it
Laravel database
IPI interrupt
es6数组的使用
After NPM was upgraded, there was a lot of panic
Escape characters \ splicing of data formats
CORS and proxy (づ  ̄ 3  ̄) in egg ~ the process of stepping on the pit and filling the pit ~ tot~
Requirements for SQL server to retrieve SQL and user information
跨域CORS的情缘~
egg的static的前缀是可以修改惹,靴靴
Laravel routing settings
MFC implementation resources are implemented separately by DLL