Qt 6.11 is out! See what's new in the release
blog
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.onCompletedandComponent.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?