QTabWidget#tabWidgetMenuBar{background:rgb(243,243,243);border-top: 0px solid #eee;border-width:0;padding:1px 1px;}QTabBar::tab{background: transparent;height:30px;padding:2px 12px;color:transparent;border-width:0;width:0;}QTabBar::tab:selected{background:rgb(243,243,243);color:rgb(43,87,154);border-color: #9B9B9B;border-bottom-color: #C2C7CB;/* same as pane color */}QTabBar::tab:!selected{color:gray;}
3.2 单独样式表
QTabBar::tab{color:#fff;width:48;background: transparent;height:30px;padding:2px 12px;border-width:0;}QTabBar::tab:selected{background:rgb(243,243,243);color:rgb(43,87,154);border-color: #9B9B9B;border-bottom-color: #C2C7CB;/* same as pane color */}QTabBar::tab:!selected{color:gray;}