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

Can’t reference ListModel in another qml file

XMLWordPrintable

    • Windows
    • Auto&Medical S13

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes