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
|
## 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
|
- All UI in **QML**; C++ for logic only
|
||||||
- Expose C++ to QML via `rootContext()->setContextProperty()` or `QML_ELEMENT`
|
- Expose C++ to QML via `rootContext()->setContextProperty()` or `QML_ELEMENT`
|
||||||
- `QSettings` for persistent state
|
- `QSettings` for persistent state
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QQmlApplicationEngine>
|
#include <QQmlApplicationEngine>
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
|
#include <QQuickStyle>
|
||||||
|
|
||||||
#include "backend/BookController.h"
|
#include "backend/BookController.h"
|
||||||
#include "backend/ReadingModel.h"
|
#include "backend/ReadingModel.h"
|
||||||
@@ -12,6 +13,8 @@ int main(int argc, char *argv[])
|
|||||||
app.setApplicationName(QStringLiteral("Asteria"));
|
app.setApplicationName(QStringLiteral("Asteria"));
|
||||||
app.setOrganizationName(QStringLiteral("Asteria"));
|
app.setOrganizationName(QStringLiteral("Asteria"));
|
||||||
|
|
||||||
|
QQuickStyle::setStyle(QStringLiteral("Basic"));
|
||||||
|
|
||||||
ReadingModel readingModel;
|
ReadingModel readingModel;
|
||||||
|
|
||||||
BookController bookController;
|
BookController bookController;
|
||||||
|
|||||||
Reference in new issue
Block a user