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

    • Bug
    • Resolution: Done
    • P0: Blocker
    • None
    • 5.12.8, 5.13.2, 5.14
    • Qt IVI
    • 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.

      Attachments

        For Gerrit Dashboard: AUTOSUITE-1374
        # Subject Branch Project Status CR V

        Activity

          People

            gagi Dominik Holland
            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