Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.9.1
-
None
Description
I simply want to change the height of the items in a QTableView or QTableWidget per qss.
Variation 1:
QAbstractItemView::item
{
height: 20px; /* only works with QListView and QTreeView, not for QTableView */
}
Variation 2:
QTableView::item
{
height: 20px; /* no effect */
}
Variation 3:
QHeaderView::section:vertical
{
height: 20px; /* hides the vertical header -> whyever */
}
Variation 4:
QHeaderView::section:vertical
{
qproperty-defaultSectionSize: 20; /* no effect */
}
Variation 5:
QHeaderView
{
qproperty-verticalHeaderDefaultSectionSize: 20; /* no effect */
}
Variation 6:
QHeaderView
{
qproperty-defaultSectionSize: 20; / sets the size for the vertical and horizontal header (I only want vertical) /
}
I'm running out of ideas...
It works when I set it manually in .ui (property verticalHeaderDefaultSectionSize) or per Code (verticalHeader()->setDefaultSectionSize()), but I want to set it for all tables