Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Exposing custom type class instance to QML code

$
0
0
I’ve run the test code here [pastebin.com] With Q_OBJECT in DerivedClass DerivedClass(0x11408d0) virtual bool DerivedClass::someFunc() true Without Q_OBJECT in DerivedClass BaseClass(0x18025a0) virtual bool DerivedClass::someFunc() true In both cases the correct function is called but if you forget the Q_OBJECT macro, qml only knows about BaseClass and not DerivedClass. May this be your issue?

Viewing all articles
Browse latest Browse all 4972

Trending Articles