QT_HARMONYOS_APP_VERSION_CODE

Der Versionscode der HarmonyOS-Anwendung.

Diese Eigenschaft wurde in Qt 6.12 eingeführt.

Hinweis: Diese Eigenschaft befindet sich in der Technologievorschau und kann sich in zukünftigen Versionen ändern.

Hinweis: Diese Eigenschaft wird nur verwendet, wenn die Plattform HarmonyOS als Zielplattform ausgewählt ist.

Gibt den ganzzahligen Versionscode der Anwendung an. Es handelt sich um eine interne Versionsnummer, die dem Benutzer nicht angezeigt wird. Der Wert wird beim Erstellen des HAP-Pakets in die Datei „ AppScope/app.json5 “ geschrieben.

Wenn diese Eigenschaft nicht festgelegt ist, wird der in der Paketvorlage definierte Wert beibehalten.

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_APP_VERSION_CODE 1
)

Siehe auch QT_HARMONYOS_APP_VERSION_NAME.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.