Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.7.3
-
None
-
macos 10.5 ( built from source or with official offline distrib )
-
f57dac1faf4d39eae851d0e9238a8b5968b48a73
Description
I have used Qt 4.7.3
// a.h class A : public QObject { Q_OBJECT public: Q_PROPERTY( int invokableValue READ invokableValue ) Q_INVOKABLE int invokableValue() { return 0; } }; // a_moc.cpp: if (_c == QMetaObject::InvokeMetaMethod) { // no calls here } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< int*>(_v) = invokableValue(); break; }
The problem can be solved by adding semicolon after Q_PROPERTY ( see http://stackoverflow.com/questions/7846238/q-property-methods-cant-be-called-using-qmetaobjectinvokemethod ).