Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-204

C++ ListModel data/get functions fail to build from QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt for MCUs 2.5
    • QML, QUL Team
    • None
    • All

    Description

      Attempting to call data/get on ListModel Struct based classes in QML fails to build.

      Add the following to the "Qt Quick Ultralite listmodel Example" for minimal reproduction:

      Component.onCompleted: console.log(alarmModel.data(0).seconds)

      Result: //error: Type undefined does not have a property x for reading

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ericstudley Eric Studley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes