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

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.