Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Listening to attached Component.onCompleted and Component.onDestroyed from C++ Q_OBJECT.
-
I have a C++ Q_OBJECT that I'd like to perform some actions on
Component.onCompleted
andComponent.onDestroyed
.Is there a way to subscribe to those handlers, without writing any QML?
It looks like I could use
QQmlEnginePrivate::registerFinalizeCallback
, but it would depend on private headers.
-
Is this what you're looking for?