I posted this in the "Newbie" forum a couple of days ago, but got no response.
I have a QTreeView control in my program. Everything looks great. The only stylesheet I have applied to it is this:
When viewing items, everything looks fine - spacing is good, looks exactly the way I wantQt Code:
treeViewStyleSheet = """ QTreeView { alternate-background-color: #eff0f0; background: #f7f8f9; } QTreeView::item { font: 400 14pt "Source Sans Pro"; padding:4px; selection-color: #ffffff; selection-background-color: #0071c5; } """To copy to clipboard, switch view to plain text mode
treeview_normal.png
When editing items, the QLineEdit is too short, and the underscores in the text become invisible.
treeview_edit.png
How can I make the edit control take up the full row height when a field is being edited without changing anything about how the tree looks when it's not being edited?
Bookmarks