#pragma once #include class TestClass : public QObject { Q_OBJECT Q_PROPERTY(QString testProperty READ testProperty WRITE setTestProperty NOTIFY testPropertyChanged) public: explicit TestClass(QObject *parent = nullptr); QString testProperty() const; void setTestProperty(const QString& value); signals: void testPropertyChanged() const; private: QString m_testProperty; };