当前位置:网站首页>QT:QSS自定义QToolButton实例
QT:QSS自定义QToolButton实例
2022-07-03 09:38:00 【C和C++技术博客】
QT:QSS自定义QToolButton实例
QToolButton 共有三种类型。
QToolButton 没有菜单。 在这种情况下,QToolButton 的样式与 QPushButton 完全相同。
QToolButton 有一个菜单,并且将 QToolButton::popupMode 设置为 QToolButton::DelayedPopup 或 QToolButton::InstantPopup。 在这种情况下,QToolButton 的样式与带有菜单的 QPushButton 完全相同。
QToolButton 将其 QToolButton::popupMode 设置为 QToolButton::MenuButtonPopup。
我们将其样式如下:
QToolButton {
/* all types of tool button */
border: 2px solid #8f8f91;
border-radius: 6px;
background-</边栏推荐
- Numpy realizes the classification of iris by perceptron
- A complete answer sheet recognition system
- Ut2014 learning notes
- Seata分布式事务失效,不生效(事务不回滚)的常见场景
- Numpy quick start (IV) -- random sampling and general functions
- Flink -- 内置函数(ALL)
- [combinatorial mathematics] pigeon nest principle (simple form examples of pigeon nest Principle 4 and 5)
- Ut2014 supplementary learning notes
- The story of a 30-year-old tester struggling, even lying flat is extravagant
- Ind wks first week
猜你喜欢
随机推荐
Leetcode刷题---374
Leetcode skimming ---189
Data captured
Convolutional neural network (CNN) learning notes (own understanding + own code) - deep learning
Out of the box high color background system
Leetcode skimming ---283
I really want to be a girl. The first step of programming is to wear women's clothes
8、 Transaction control language of MySQL
conda9.0+py2.7+tensorflow1.8.0
Leetcode刷题---1
Iterator iterator enhances for loop
Leetcode skimming ---75
UI interface design related knowledge (I)
如何在游戏中制作一个血条
Weight decay (pytorch)
Pytoch has been installed, but vs code still displays no module named 'torch‘
七、MySQL之数据定义语言(二)
Leetcode skimming ---263
Ind yff first week
Ut2015 learning notes









