MySingleton Class

A C++ class for a QML singleton type. More...

Header: #include <MySingleton>

Public Functions

MySingleton(QObject *parent = nullptr)
QString getMessage() const

Detailed Description

Member Function Documentation

[explicit] MySingleton::MySingleton(QObject *parent = nullptr)

Constructor for MySingleton using parent.

[invokable] QString MySingleton::getMessage() const

Returns a message.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.