-
Notifications
You must be signed in to change notification settings - Fork 11
INJEQT_DONE
Rafał Malinowski edited this page Oct 25, 2016
·
3 revisions
INJEQT_DONE
is a tag added to slot method that is called before injector destructs itself and all of created objects.
private slots:
INJEQT_DONE void name();
Method tagged with INJEQT_DONE
must be declared as slot (usually private), because such a method must be available in QMetaObject
and it is not possible to tag a methods that is already tagged with Q_INVOKABLE
.
All INJEQT_DONE
methods of an object (defined it its type or in its ancestors) are called before injector with all of its objects is destroyed.
INJEQT_DONE
methods are called for objects:
- added with injeqt::module::add_type
INJEQT_DONE
methods are not called for objects:
- added with injeqt::module::add_ready_object
- added with injeqt::module::add_factory
- passed as parameters to injeqt::injector::inject_into
private slots:
INJEQT_DONE void disconnectFromDependencies();