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

Autogenerated simulationData for structs can't be loaded anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.12.8, 5.13.2, 5.14
    • Fix Version/s: None
    • Component/s: Qt IVI
    • Labels:
      None
    • Commits:
      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes