Error setting qtablewidget style
Moved
Unsolved
General and Desktop
-
I set the header effect of qtablewidget on Linux. There is no way to set it here
QTableView QHeaderView::section { font-size:14px; font-family:"Microsoft YaHei"; color:#FFFFFF; background:#60669B; border:none; text-align:left; min-height:49px; max-height:49px; margin-left:0px; padding-left:0px; }
help me
-
@training
From https://doc.qt.io/qt-5/stylesheet-reference.htmlThe corner widget in a QTableView is implemented as a QAbstractButton and can be styled using the "QTableView QTableCornerButton::section" selector.
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
QTableView QTableCornerButton::section { background: red; border: 2px outset red; }