QTableWidget 设置表头颜色
方法1:
setStyleSheet( "QHeaderView::section {background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 #00007f, stop: 0.5 #00007f,stop: 0.6 #00007f, stop:1 #00007f);color: white;}");
方法2:
setStyleSheet(
"QTableWidget{ color:black; \
background-color:rgb(224,224,224);\
selection-color:rgb(0, 0, 0); \
selection-background-color:rgb( 100,149,237);\
border:0px;\
font: 8pt 'Microsoft YaHei' ;}"
"QHeaderView::section:horizo