Form editor files

When we worked with Qt Widgets form editor, you may have noted that a widget form is an XML file that is converted to a C++ class during compilation. This does not apply to Qt Quick Designer. In fact, the files produced by this form editor are completely valid QML files that are directly included in the project. However, the form editor files have a special extension (.ui.qml), and there are some artificial restrictions that protect you from doing bad things.

The ui.qml files should only contain content that is visible in the form editor. You do not need to edit these files by hand. It's not possible to call functions or execute JavaScript code from these files. Instead, you should implement any logic in a separate QML file ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.