setStyleSheet("QTabWidget::pane {border-top: 2px solid gray;/*position: absolute;top: -0.5em;*/}"
"QTabBar::tab {border: 2px solid gray;border-bottom-color: #C2C7CB;border-top-left-radius: 4px;"
"border-top-right-radius: 4px;padding: 2px;min-height:40px;min-width:80px;font-size:20px;font-weight:75;}"
"QTabBar::tab:selected{background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,"
"stop: 0 blue, stop: 0.4 white,stop: 0.6 white, stop: 1.0 blue);}"
"QTabBar::tab:hover {background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,"
"stop: 0 lightblue, stop: 0.5 white,stop: 0.6 white, stop: 1.0 lightblue);}"
"QTabBar::tab:selected {border-color: #9B9B9B;border-bottom-color: #C2C7CB;}"
);
这是我写的一个样式。你自己揣摩。
另外赠送一个链接
http://doc.trolltech.com/4.6/stylesheet-reference.html[ 此帖被午小夜在2010-03-06 21:30重新编辑 ]