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
27 January 2021
If one has QObjects living in C++, how does one manage one's lifetime, when these objects are exposed to QML? Is the QML garbage collector allowed to reclaim them? What happens if they're still needed in C++? Or, on the other hand, what happens if one doesn't delete them from C++, expecting them to be deleted by QML instead? In other words, who owns what? Let's find out, in this video.
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
00:00 Introduction
01:00 QObject Ownership
02:08 Ownership Example
05:18 Scope of Ownership
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
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more