Fix row overlap in OutlineView

TreeViewDelegate doesn't auto-size from contentItem. Explicitly bind
implicitHeight to contentColumn.implicitHeight so rows size correctly.
This commit is contained in:
Levi Neely 2026-10-01 09:27:15 +02:00
parent 3d2edf1807
commit b0a4956d8f
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ TreeView {
readonly property int bodyIndent: 12
implicitWidth: tree.width
implicitHeight: contentColumn.implicitHeight
background: Rectangle {
color: del.current ? theme.highlightColor : "transparent"
@ -58,6 +59,7 @@ TreeView {
}
contentItem: ColumnLayout {
id: contentColumn
spacing: 4
RowLayout {