zl程序教程

您现在的位置是:首页 >  工具

当前栏目

QTabWidget样式表右侧_qt qwidget

Qt 样式表 右侧 qtabwidget
2023-06-13 09:14:52 时间

大家好,又见面了,我是你们的朋友全栈君。

1、QTabWidget模型,来自于网络:

2、样式设置:

this->setStyleSheet("QTabWidget::pane{border-width:1px;border-color:rgb(48, 104, 151);\
                                    border-style: outset;background-color: rgb(132, 171, 208);\
background: transparent;} \
QTabWidget::tab-bar{width:600; subcontrol-position:left;}\
QTabBar::tab{border-bottom-color: #C2C7CB;\
         background: #3498DB;\
         border: 2px solid #C2C7CB;\
             border-radius:0;\
                      border-top-left-radius: 5px;\
                               border-top-right-radius: 5px;\
                                        max-width: 75px; min-width:75px; min-height:25px;\
         font:14px Times New Roman;\
         padding: 5px;}\
QTabBar::tab:hover{background-color:#30587B;}\
QTabBar::tab:selected{background-color:#20C8

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/190247.html原文链接:https://javaforall.cn