diff options
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2023-10-10 14:23:33 +0200 |
|---|---|---|
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2023-11-11 11:42:49 +0100 |
| commit | bde55ad574ac84440e2cdc9c1122a344bb1cb67a (patch) | |
| tree | abb8d486eec2761630df6437019e2a54cb7259c6 /tests/manual/textrendering/main.cpp | |
| parent | 6df497920c696b44ab826c7b4cd775255c220511 (diff) | |
Introduce a CurveRendering backend for text
This moves the internals of the curve renderer out from
Qt Quick Shapes and into a more centralized location
in Qt Quick, so that we can use the same code to create
a new text backend for rendering large scale text without
artifacts.
Change-Id: I3f7e6f7961c1bbe230fcb531c0ca028e038c1afd
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/manual/textrendering/main.cpp')
| -rw-r--r-- | tests/manual/textrendering/main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/manual/textrendering/main.cpp b/tests/manual/textrendering/main.cpp new file mode 100644 index 0000000000..0b2490f5df --- /dev/null +++ b/tests/manual/textrendering/main.cpp @@ -0,0 +1,26 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#include <QGuiApplication> +#include <QQmlApplicationEngine> +#include <QFontDatabase> + +int main(int argc, char *argv[]) +{ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif + QGuiApplication app(argc, argv); + app.setOrganizationName("QtProject"); + + QQmlApplicationEngine engine; + const QUrl url(QStringLiteral("qrc:/main.qml")); + QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, + &app, [url](QObject *obj, const QUrl &objUrl) { + if (!obj && url == objUrl) + QCoreApplication::exit(-1); + }, Qt::QueuedConnection); + engine.load(url); + + return app.exec(); +} |
