fix scrollbar on QT 6.10.x
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user