QT_QML_GENERATE_ANDROID_JAVA_CLASS

Marks a QML file for Java code generation.

This property was introduced in Qt 6.8.

When using QML as a Android: View in Android via QtQuickView, you can choose the QML components to make available as generated Java classes usable from Android code. To mark a .qml file for code generation, set its QT_QML_GENERATE_ANDROID_JAVA_CLASS source property to TRUE. The source property must be set before creating the module.

Note: The .qml file name must start with an uppercase letter and define a QML component. This property is valid only if QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS is defined.

See also Naming Custom QML Object Types.

© 2024 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.