Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-4981

ListModel does not list elements in QML Observer

    XMLWordPrintable

Details

    • a7f4e5fab5f46ec392345770c017de2106f9615a

    Description

      ListModel does not show ListElement in the QML Observer.

      Debug attached example. In the QML Observer, select contactModel under listRectangle. The count shows 4 but the elements are not listed.

      While this bug is fixed in Creator 2.2 the example highlights another problem located in the text editor. The attached example uses a name already used by a QML element. A javascript file ListView.js is imported in the namespace LIstView.

      With this setup the text editor highlights the used ListView QML element as troublesome.

      Can we make a distinction between namespace and QML elements or could we through a warning maybe even on a file name basis, because a ListView.qml components might rase similar problems.

      Attachments

        1. ListView.zip
          2 kB
          Aurindam Jana

        Activity

          People

            ckamm Christian Kamm
            ajana Aurindam Jana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: