I assume the Q_PROPERTY(SubClass sub…) was actually Q_PROPERTY(SubClass *sub…) as required for QObjects exposed to QML?
The backtrace suggests that the crash actually occurs due to a bound signal handler (an onSomethingChanged function).
Are you certain that it’s the resolution of root.sub.listofsubobjects which is causing the crash? (If so, the backtrace suggests that it is identifying the QList<QObject*> as a QObject* … which seems unlikely, as we do handle QList<QObject*> correctly in several different codepaths).
Are you able to post a complete, minimal example which exhibits this bug?
Thanks,
Chris.
↧