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

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

XMLWordPrintable

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

      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
       }
      }
      

        For Gerrit Dashboard: QTBUG-32132
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes