O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required