![](/img/trans.png)
[英]How to change the background color from the header(horizontal / vertical) QTableWidget on Qt?
[英]How to change the background color of the QTableWidget's vertical header?
終於自己找到了答案:
/*The top-left area is actually a button:*/
QTableCornerButton::section {
background-color: #8b8d8e;
}
/*The lower part of the vertical header:*/
QHeaderView {
background-color: #8b8d8e;
}
我發布的原始 css (QHeaderView::section) 僅指標題條目,而不是標題本身。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.