6
class MyType : public QObject
9
Q_PROPERTY( QString helloWorld READ helloWorld WRITE setHelloWorld NOTIFY helloWorldChanged )
12
explicit MyType(QObject *parent = 0);
16
void helloWorldChanged();
19
QString helloWorld() { return m_message; }
20
void setHelloWorld(QString msg) { m_message = msg; Q_EMIT helloWorldChanged(); }