fix scrollbar on QT 6.10.x

This commit is contained in:
Agel committed 2026-03-16 13:30:28 +01:00
1 parent ec39379121
commit 18c064f36b
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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
+3
View File
@@ -1,6 +1,7 @@
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#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;