diff options
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-07-22 11:55:21 +0200 |
|---|---|---|
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-08-29 01:35:26 +0200 |
| commit | 0b23a68fabf6bfcb03d04db7119c2985d7b5d84d (patch) | |
| tree | 4993baa12da02a2f25b24ec7335a7f4b50069766 /examples/quick/advancedtext/main.cpp | |
| parent | 091a2eae9f260bf66b49d528e9484840216dd287 (diff) | |
Introduce example that shows advanced text features
This example demonstrates how to use variable axis support
in Qt to make text fit in a pre-defined layout.
The example is given a non-specific name so that it can
easily be expanded to show additional font features later.
Pick-to: 6.8
Change-Id: Ic18b177f02a21fa9e7726bb35e94ed6ecc93bafd
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/quick/advancedtext/main.cpp')
| -rw-r--r-- | examples/quick/advancedtext/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/quick/advancedtext/main.cpp b/examples/quick/advancedtext/main.cpp new file mode 100644 index 0000000000..2002b9f5ea --- /dev/null +++ b/examples/quick/advancedtext/main.cpp @@ -0,0 +1,16 @@ +// Copyright (C) 2024 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#include <QGuiApplication> +#include <QQmlApplicationEngine> + +int main(int argc, char *argv[]) +{ + QGuiApplication app(argc, argv); + app.setOrganizationName("QtProject"); + + QQmlApplicationEngine engine; + engine.loadFromModule("advancedtext", "Main"); + + return app.exec(); +} |
