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

Model reset in QStandardItemModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.4
    • Core: Item Models
    • None

      When subclassing `QStandardItemModel` a situation arises when the subclass intends to reset the model using `beginResetModel()` and `endResetModel()`. These will emit the `QAbstractItemModel::modelAboutToBeReset()` and `QAbstractItemModel::modelReset()` signals, respectively.

      However, between the begin and the end of the model reset the usual model signals will still be emitted as the item model is manipulated.

      This does not seem entirely correct, yet I am unaware if this causes trouble for views or proxy models. I'm actually not sure about subclassing `QStandardItemModel` at all, although the doc considers it.

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

            dfaure_kdab David Faure
            kamajii Sven Pauli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes