QTabWidget:pane {
border: none;
}
QTabBar:tab {
background: blue;
color: white;
min-width:128px;
min-height:55px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
margin-right: 2px;
}
QTabBar:tab:selected {
background: white;
color: blue;
}
QTabWidget::tab-bar
{
background:blue;
subcontrol-position:center;
}
QTabBar:tab:hover:!selected {
background: blue;
}
本文详细介绍了如何使用QTabWidget和QTabBar的样式表来定制界面风格,包括背景颜色、文字颜色、圆角效果等,为用户提供了一个美观且统一的界面设计方案。
1万+

被折叠的 条评论
为什么被折叠?



