If you switch between Qt Creator and Qt Design Studio or cooperate with designers on a project, you might encounter UI files (.ui.qml). They are intended to be edited in Qt Design Studio only.
The following features are not supported in .ui.qml files:
- Other bindings than pure expressions
- Signal handlers
- States in other components than the root component
- Root components that are not derived from QQuickItem or Item
- Referencing the parent of the root component
The following components are not supported:
- Shader Effect
This section lists the functions that you can use in .ui.qml files.
As a rule of thumb, pure functions are supported. They only depend on and modify states of parameters that are within their scope, and therefore always return the same results when given the same parameters. This makes it possible to convert and reformat property bindings without breaking the .ui.qml files.
In addition, all functions of the
Date objects are supported.
Qt QML Methods
Qt Creator supports color methods, helper methods for creating objects of specific data types, and translation methods.
The following color methods are supported:
The following helper methods are supported:
The following translation methods are supported:
Note: Do not mix translation methods in a UI file.
For more information about using the methods, see Qt QML Methods.
© 2023 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.