From 04425d9e9fb58b997b77d2752a7ab7bf49888354 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 1 Oct 2026 09:29:35 +0200 Subject: [PATCH] Use rowHeightProvider for proper row sizing TreeView (inherits TableView) defaults to fixed row heights. Setting rowHeightProvider to return -1 tells it to use each delegate's implicitHeight, enabling variable-height rows. --- ui/qml/OutlineView.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/qml/OutlineView.qml b/ui/qml/OutlineView.qml index 3b8e112..c073b30 100644 --- a/ui/qml/OutlineView.qml +++ b/ui/qml/OutlineView.qml @@ -10,6 +10,9 @@ TreeView { id: tree clip: true + // Force TreeView to calculate row heights per-row instead of using a fixed height + rowHeightProvider: function(row) { return -1 } // -1 means "use delegate's implicitHeight" + readonly property int rowPad: 6 readonly property int baseFontSize: theme.fontSize > 0 ? theme.fontSize : 12