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

Check available groceries

We open again Page1Form.ui.qml in the Designer. By browsing the components available by default in Qt Quick Designer (the QML Types tab on the top left), we will find a few that we may think are suitable for representing a list. Yet, if we perform a keyword lookup for a list in the search field at the top of QML Types, we'll only see one result: List View. A quick look at Qt's documentation (http://doc.qt.io/qt-5.9/qml-qtquick-listview.html) will tell us what ListView is useful for, and whether it can be useful to us. It turns out it is. The ListView is capable of showing data dynamically from a model, updating itself every time the model changes. On top of that, ListView provides scroll support for touch interactions, ...

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