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

Qml do not updates roles names on QAbstractItemModel::reset signal

    XMLWordPrintable

Details

    • 837c2f18c (dev), e2f5e9b1f (tqtc/lts-6.2), ab19b7d0d (6.5)

    Description

      In QAbstractItemModel reset signal documentation, role names are mentioned as a one of things that are invalidated and which should be re-queried by a model user. Qml is is not respecting that, and roles names are set only once after a first data chunk is read. As a model is free to redefine and re-use roles ids that situation may cause a security issues.

      Component {
       id: delegate
       Text {
         text: userName // after reset it may show userPass instead
       }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              nierob Nierob
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes