Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
6.0
-
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.