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
22 December 2020
Remember when we were discussing properties in QML, somewhere around 25 videos ago? What if I told you that Qt allows you to define properties in C++ for QObject subclasses? All we need to do is describe the property: its type, it's name, how Qt is supposed to read and write it. In this last video of the module, we'll describe the Qt Property System, how it's used, and where it fits in the big picture. Bonus: What has QVariant to do the property system?
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
00:00 Introduction
01:40 Properties
04:05 QObject with Properties
07:09 Using Properties
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