Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18587

Roles are not removed in listmodel

    XMLWordPrintable

Details

    • 6ec7695eaa02c923b90d72e3918b9ab50da63e41

    Description

      Rolse are not removed using listmodel::clear().
      If roles are created using a js-array with different members and added after listModel::clear() roles are still the same.
      Sample js-array.
      1.

      { text: "My Text", subText: "My subText }

      2.

      { text: "My other text" }

      If a repeater model is using set using model: ListModel

      {id: listModel}

      with the js-array 1 and later are clear and set with js-array 2. QML will crash with index of bounds.

      Attachments

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

        Activity

          People

            bealam Bea Lam (closed Nokia identity) (Inactive)
            paletteguy Karsten Sperling Opdal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes