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

ListModel doesn't emit modelReset when its roles change

XMLWordPrintable

      When starting with an empty ListModel, it obviously has no roles. When you add a first element to the model, its roles are generated from the first element. However there are no signals emitted to indicates this role change. I'm not sure if it's a bug but I assumed it would emit a modelReset signal.

      For a filter proxy model connected to this ListModel, this is bothersome since it can't change its own roleNames.

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

            qtqmlteam Qt Qml Team User
            grecko Pierre-Yves Siret
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes