Qt QHeaderView 表头样式设置详解 - section 选择器
在 Qt 的 QHeaderView 组件中,'section' 指的是表头的一个独立的部分,可以是列头或行头。通过设置 QHeaderView 的样式表,可以使用 'QHeaderView::section' 选择器来对表头的样式进行自定义。
在 'QHeaderView::section{background:#333333}' 中,'section' 表示选择器的目标为表头的每一个独立部分,'background:#333333' 表示设置表头的背景颜色为 '#333333'(深灰色)。
原文地址: https://www.cveoy.top/t/topic/mjbn 著作权归作者所有。请勿转载和采集!