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?
↧