Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
None
-
5.12.8, 5.13.2, 5.14
-
None
-
af67d98291f65d7b200d5d603c728f857dba0376 (qt/qtivi/5.12) 51654f517654f51688c5a5c54dfdba33d14f7086 (qt/qtinterfaceframework/dev)
Description
When using autogenerated simulationData for structs, e.g. to fill a contacts model, the data won't be loaded successfully and the following error will be printed:
QMetaObject::newInstance: type Contact does not inherit QObject
This is caused by https://codereview.qt-project.org/c/qt/qtbase/+/258573, as QMetaObject::newInstance is used to create a instance and copied into a QVariant to generate the struct from JSON.
The issue can be seen in the addressbook example, which doesn't load the default content anymore.
To fix the issue QtIvi needs to use it's own version of QMetaObject::newInstance as a workaround until a version which works with gadgets can be added to qtbase.