.QFrame { background-color: #FFFFFF; } .CommandButton[state="0"] { background-color: #98FB98; border-width: 2px; border-color: darkkhaki; border-style: solid; border-radius: 5; padding: 3px; font :12px "黑体"; } .CommandButton[state="1"] { background-color: #EE9572; border-width: 2px; border-color: darkkhaki; border-style: solid; border-radius: 5; padding: 3px; font :12px "黑体"; } CommandButton:pressed[state="0"] { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 0.5 #98FB98, stop: 1 #dadbde); } CommandButton:pressed[state="1"] { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 0.5 #EE9572, stop: 1 #dadbde); } CommandButton:pressed[state="2"] { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 0.5 #EE9572, stop: 1 #dadbde); } .QLabel { font: 15px "黑体"; } .QComboBox { font: 15px "黑体"; } .QPushButton { font: 15px "黑体"; } .QTabWidget { background-color: #FFFFFF; font: 15px "黑体"; } .QTabBar::tab{ max-width: 75px; min-width: 75px; min-height: 40px; } .QTabBar::tab:!selected { color:#000000; } .QTabBar::tab:selected { color:#000000; background-color: #FE9A2E; } QTabBar::scroller { /* the width of the scroll buttons */ width: 80px; } QTabBar QToolButton { /* the scroll buttons are tool buttons */ border-width: 2px; } QTabBar QToolButton::right-arrow { /* the arrow mark in the tool buttons */ image: url(:/img/right.png); } QTabBar QToolButton::left-arrow { image: url(:/img/left.png); } .QTabBar QToolButton::right-arrow:hover { background-color:rgb(255, 171, 208); border-width: 0; } .QTabBar QToolButton::left-arrow:hover { background-color:rgb(255, 171, 208); border-width: 0; }