O'Reilly logo

Qt 5 Projects by Marco Piccolino

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

The Qt Quick Layouts system

The Qt Quick Layouts system (http://doc.qt.io/qt-5.9/qtquicklayouts-index.html) is a more recent introduction among the QML options for positioning items. It provides a few QML types that can modify and calculate the size of their children items based on the available space and given constraints.

It currently ships four container types: ColumnLayout, GridLayout, RowLayout, and StackLayout. Besides providing these types, the module also exposes a few so-called attached properties (http://doc.qt.io/qt-5.9/qtqml-syntax-objectattributes.html#attached-properties-and-attached-signal-handlers), which extend the capabilities of children items. One of the most important things to remember regarding layouts is that the sizing ...

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