Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Again... "Unable to handle unregistered datatype"
topse last edited by topse
Hi and sorry for that topic again.
I get the following errormessage only when I run my application, not when I debug it. When I run it, it really does not work, when I debug it, everything is fine:
QMetaProperty::read: Unable to handle unregistered datatype 'QQmlListProperty<ListObject>' for property 'SchuljahrAssistentMgr::currentSchuljahrList'
Does anyone have a clue, why it only happens on <CTRL>+<R> but not on F5? Its both a Debug-Build...
qmlRegisterType<ListObject>("com.stonesoft.qmlcomponents", 1, 0, "ListObject");
is done in both cases of course!
@topse Did you register the component after loading the QML ?
topse last edited by
Thats it... I did in in a Singleton which is initialized via QML... Just a little confusing now, why it works on "Debug" but not on "Run".
Thanks for the hint! I never would have been suspicious about the order...
@topse That's because debug process takes some time and by then the registration is done while it is still busy processing the qml.