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
7 April 2020
We can't stress this enough: never store any business-related state in QML! All the business logic belongs to C++. However, storing some UI-related state in a component may make sense in certain cases (for instance, the position at which a list view is scrolled to).
How do we do that? In this video we'll show the simplest solution: just introduce some ad-hoc properties in the right element inside a component. These properties can then act as local variables.
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