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

Add a method to clear the data to QAbstractItemModel

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: Core: Item Models
    • Labels:
      None
    • Commits:
      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

            Assignee:
            VRonin Luca
            Reporter:
            VRonin Luca
            PM Owner:
            Maurice Kalinowski Maurice Kalinowski
            RnD Owner:
            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