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

Can’t reference ListModel in another qml file

    XMLWordPrintable

Details

    • Windows
    • Auto&Medical S13
    • Windows

    Description

      It seems creating a ListModel in a separate file, makes it impossible to use the custom QML type definition in another file to e.g. access the count property of ListModel.

      There are errors like when building the application:

      error: Cannot assign to non-existent default property
          ListElement {
          ^~~~~~~~~~~
      

      And

      error: Binding on property of unknown type
              cost: "2.45"
              ^~~~
      

       

      Attached example shows the issue.

      Attachments

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

        Activity

          People

            k0rahman Karim Abdelrahman
            tiheikka Titta Heikkala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes