C++ (Qt)class MyClass : public QObject{ Q_OBJECT Q_PROPERTY(bool readonly READ isReadOnly WRITE setReadOnly) private: bool m_bReadOnly; public: MyClass(QObject* pobj = 0) : QObject(pobj) , m_bReadOnly(false) { } public: void setReadOnly(bool bReadOnly) { m_bReadOnly = bReadOnly; } bool isReadOnly() const { return m_bReadOnly; } }
MyClass(QObject* pobj = 0) : QObject(pobj) , m_bReadOnly(false) { }
MyClass(QObject* pobj = 0)
MyClass(QObject* pobj = 0) : QObject(pobj)
, m_bReadOnly(false)
{ }
C++ (Qt)A::A (){ SomeMember = 0;}
C++ (Qt)A::A (): SomeMember (0){ }
C++ (Qt)int myint = mychar;