Game Programming using Qt 5 Beginner's Guide - Second Edition
by Pavel Strakhov, Witold Wysota, Lorenz Haas
How does it work?
Qt Quick infrastructure hides most of the implementation details from the developer and allows you to keep your application code clean. Nevertheless, it's always important to understand what's going on.
The QML engine is a C++ class that understands QML code and executes the required actions to make it work. In particular, the QML engine is responsible for creating objects according to the requested hierarchy, assigning values to properties, and executing event handlers in response to events.
While QML language itself is quite far from JavaScript, it allows you to use any JavaScript expressions and code blocks for calculating values and handling events. This means that the QML engine must be capable of executing JavaScript. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access