当前位置:网站首页>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-</边栏推荐
- A complete answer sheet recognition system
- Leetcode刷题---704
- Convolutional neural network (CNN) learning notes (own understanding + own code) - deep learning
- Pytoch has been installed, but vs code still displays no module named 'torch‘
- UI interface design related knowledge (I)
- Common scenarios in which Seata distributed transactions fail and do not take effect (transactions do not rollback)
- Detailed cross validation and grid search -- sklearn implementation
- 丢弃法Dropout(Pytorch)
- 六、MySQL之数据定义语言(一)
- Bid -- service commitment -- self summary
猜你喜欢
随机推荐
Seata分布式事务失效,不生效(事务不回滚)的常见场景
Leetcode刷题---189
Leetcode skimming ---367
七、MySQL之数据定义语言(二)
Leetcode skimming ---832
Iterator iterator enhances for loop
Leetcode skimming ---283
权重衰退(PyTorch)
Automatic derivation of introduction to deep learning (pytoch)
项目组织战略管理
Leetcode刷题---704
Leetcode刷题---1
Class-Variant Margin Normalized Softmax Loss for Deep Face Recognition
小文件专项
6、 Data definition language of MySQL (1)
Knowledge map enhancement recommendation based on joint non sampling learning
Numpy quick start (II) -- Introduction to array (creation of array + basic operation of array)
[SQL] an article takes you to master the operations related to query and modification of SQL database
Uni app learning 1 bottom menu and parent-child components
[combinatorial mathematics] pigeon's nest principle (simple form of pigeon's nest principle | simple form examples of pigeon's nest principle 1, 2, 3)







