Hi
I have a QTreeView which uses this style sheet:
QTreeWidget::item:selected{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
height: 60px;
}
My intention was that the row in the QTreeView would not only highlight but also get bigger when it is the selected one. The highlighting above works fine but the height is not changed when the item becomes active.
Using setSizeHint from the code instad increases the size of the row was expected.
Am I missing the point on what stylesheets can be/shold be used for here?
Bookmarks