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
9 January 2020
If you haven't understood property bindings in detail, now is the time to re-watch our earlier video on the subject, which is available here: https://www.youtube.com/watch?v=2rtz9vkuxio
Then, come back here. We need to discuss something that can go wrong when using property bindings, that is, when we accidentally create a circular set of bindings (or, a "binding loop").
This video discusses the dreaded "binding loop detected" warning that comes from the QML engine. Sometimes, it's pretty clear that we have created a loop (property A depends on B, which depends on A) and we can easily fix our code. Some other times, especially when anchor layouts are involved, this is not so clear. Watch this video for an explanation of what is going wrong and how to fix it.
As a bonus suggestion: if you need to debug binding loops, try using GammaRay, the introspection tool for Qt applications developed by KDAB.
You can get GammaRay here: https://github.com/KDAB/GammaRay/wiki/Getting-GammaRay
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
00:00 Introduction
00:41 Binding Loop
05:27 Property Binding
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