From 9edb34c44c72c6324bb3824efabe43689baf46ac Mon Sep 17 00:00:00 2001 From: Andrew Sazonov Date: Wed, 22 Apr 2026 14:02:43 +0200 Subject: [PATCH 1/2] Add default vertical scrollbar to TableView --- src/EasyApp/Gui/Components/TableView.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/EasyApp/Gui/Components/TableView.qml b/src/EasyApp/Gui/Components/TableView.qml index 6926222..306d399 100644 --- a/src/EasyApp/Gui/Components/TableView.qml +++ b/src/EasyApp/Gui/Components/TableView.qml @@ -102,6 +102,12 @@ ListView { } } + // ScrollBar + ScrollBar.vertical: EaElements.ScrollBar { + policy: ScrollBar.AsNeeded + interactive: true + } + // Logic function flexibleColumnWidth() { From 4fa8c68a596a20d6ba4b5e9159670d0d887c7de1 Mon Sep 17 00:00:00 2001 From: Andrew Sazonov Date: Thu, 23 Apr 2026 10:29:28 +0200 Subject: [PATCH 2/2] Add top inset and padding to cover the header case if applicable --- src/EasyApp/Gui/Components/TableView.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/EasyApp/Gui/Components/TableView.qml b/src/EasyApp/Gui/Components/TableView.qml index 306d399..45dcd97 100644 --- a/src/EasyApp/Gui/Components/TableView.qml +++ b/src/EasyApp/Gui/Components/TableView.qml @@ -104,8 +104,12 @@ ListView { // ScrollBar ScrollBar.vertical: EaElements.ScrollBar { - policy: ScrollBar.AsNeeded + topInset: listView.headerItem ? listView.headerItem.height : 0 + topPadding: topInset + interactive: true + + policy: ScrollBar.AsNeeded } // Logic