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

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes