Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1374

Autogenerated simulationData for structs can't be loaded anymore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P0: Blocker P0: Blocker
    • None
    • 5.12.8, 5.13.2, 5.14
    • Qt IVI
    • None
    • af67d98291f65d7b200d5d603c728f857dba0376 (qt/qtivi/5.12) 51654f517654f51688c5a5c54dfdba33d14f7086 (qt/qtinterfaceframework/dev)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gagi Dominik Holland
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes