-
Notifications
You must be signed in to change notification settings - Fork 11
INJEQT_INIT
Rafał Malinowski edited this page Oct 24, 2016
·
4 revisions
INJEQT_INIT
is a tag added to slot method that is called after all dependencies has been set.
private slots:
INJEQT_INIT void name();
Method tagged with INJEQT_INIT
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_INIT
methods of an object (defined it its type or in its ancestors) are called after all of the INJEQT_SET
methods. Order of calling INJEQT_INIT
methods in unspecified.
INJEQT_INIT
methods are called for objects:
- added with injeqt::module::add_type
- passed as parameters to injeqt::injector::inject_into
INJEQT_INIT
methods are not called for objects:
- added with injeqt::module::add_ready_object
- added with injeqt::module::add_factory
private slots:
INJEQT_INIT void connectToDependencies();