【发布时间】:2014-11-28 06:09:40
【问题描述】:
我找不到为 QHeaderView 的左上角设置主题的方法。也许它是 QTableWidget 的一部分,我不知道...... 示例:http://i.imgur.com/VmHHdan.png
History {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 black, stop:1 gray);
}
* {
font: 500 12pt "Cantarell";
color: rgba(255, 255, 255, 200);
}
QTableWidget {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 black, stop:1 blue);
}
QTableWidget::item {
hborder: 5px solid rgba(68, 119, 170, 150);
background-color:rgba(68, 119, 170, 125);
}
QHeaderView, QHeaderView::section {
background-color: rgba(128, 128, 128, 128);
}
【问题讨论】:
标签: css qt qt5 qtablewidget qtstylesheets