1、普通模式,如图
/* 向在移动 */
QTabWidget::tab-bar {
left:20px;
}
QTabBar::tab {
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border:2px solid #C4C4C3;
border-bottom-color:red;
border-top-left-radius:4px;
border-top-right-radius:4px;
min-width:8px;
padding:2px;
}
/* 标签被选中时或鼠标悬浮时 */
QTabBar::tab:selected,QTabBar::tab:hover {
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
/* 标签被选中时 */
QTabBar::tab:selected {
border-color:#9B9B9B;
border-bottom