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: [ Ссылка ]
00:00 Introduction
01:00 QObject Ownership
02:08 Ownership Example
05:18 Scope of Ownership
About the host:
This video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.
About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing, and innovative software across embedded, mobile, and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D, and more. [ Ссылка ]
KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL, and C++.
Contact us to find out more at training@kdab.com or visit our website: [ Ссылка ]
We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK, and the USA. [ Ссылка ]
Ещё видео!