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

Add a method to clear the data to QAbstractItemModel

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes