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
19 June 2020
So far we have seen various techniques for automatically place and/or resize elements in Qt Quick: manual positioning, anchors, positioners. If you need to do a quick catch-up for those, please go watch the related videos earlier in series!
It is now time to discuss yet another one – perhaps, the most powerful: Qt Quick Layouts. Layouts act like positioners: they automatically arrange their children according to a criterion (e.g. lay elements out vertically, horizontally, in a grid). Unlike positioners, layouts are also able to resize elements, and offer a much richer API when it comes to controlling sizing. (It's not the first time that we discuss sizing: we have already seen implicit sizing in this video https://youtu.be/Lt-8fYWOVx8 ).
As usual, GammaRay can help you understand and debug item layouting. You can freely download GammaRay from GitHub: https://github.com/KDAB/GammaRay/wiki/Getting-GammaRay
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