Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
11 June 2020
Welcome to the sixth module of our "Introduction to Qt / QML" series! In this module we are going to start exploring model/view programming with Qt Quick. Model/view is a cornerstone of Qt development: every non-trivial Qt application uses it, sometimes extensively. The end goal for us is going to be to have the data managed by the C++ side of the application, and the view created in QML that shows that data.
We are going to get there gradually. In this first video we'll see two important building blocks: positioners elements and the Repeater element. Positioners are used to automatically place their children side by side or one below each other, and so on. They resemble layouts, although in Qt we reserve the name "layout" to something slightly more complex.
The Repeater element instead creates a number of elements driven by a data model. By placing a Repeater into a positioner, we can create elements driven by data and arrange them, all automatically.
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Upgrade your applications from Qt 5 to Qt 6 with KDAB’s migration services. Get a free migration assessment and join a hands-on workshop to prepare your team for a successful transition!
Learn more