From 18c064f36be207d08a0e63d3c1a969f7313ab35e Mon Sep 17 00:00:00 2001 From: Agel Date: Mon, 16 Mar 2026 13:30:28 +0100 Subject: [PATCH] fix scrollbar on QT 6.10.x --- CLAUDE.md | 2 +- src/main.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 23737ce..4c1f78e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -222,7 +222,7 @@ All colors are defined in `src/qml/Theme.qml` (a QML singleton registered via `q ## Qt Conventions -- **Qt6 only** — no Qt5 compat shims +- **Qt 6.10.x preferred** — no Qt5 compat shims - All UI in **QML**; C++ for logic only - Expose C++ to QML via `rootContext()->setContextProperty()` or `QML_ELEMENT` - `QSettings` for persistent state diff --git a/src/main.cpp b/src/main.cpp index c270446..09f2b6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "backend/BookController.h" #include "backend/ReadingModel.h" @@ -12,6 +13,8 @@ int main(int argc, char *argv[]) app.setApplicationName(QStringLiteral("Asteria")); app.setOrganizationName(QStringLiteral("Asteria")); + QQuickStyle::setStyle(QStringLiteral("Basic")); + ReadingModel readingModel; BookController bookController;