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

Add a method to clear the data to QAbstractItemModel

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 6.0
    • 6.0
    • Core: Item Models
    • None
    • Ide0b5bb6358439fc42c474df8b044fbace6def8d If980fcfc36f723128bc56ec4587c5c3a338dbbcc

      Now that QTBUG-45114 has been closed and the behaviour of setItemData is set in stone, it's clear QAbstractItemModel is lacking an interface to clear all the data from a single index.
      I'm proposing to add a virtual bool clearData(const QModelIndex&) method to QAbstractItemModel so that the functionality can be implemented by the subclasses.

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

            VRonin Luca
            VRonin Luca
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes