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