A C++ class for a QML singleton type. More...
| Header: | #include <MySingleton> |
| MySingleton(QObject *parent = nullptr) | |
| QString | getMessage() const |
[explicit] MySingleton::MySingleton(QObject *parent = nullptr)Constructor for MySingleton.
[invokable] QString MySingleton::getMessage() constReturns a message.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.