Proxy allowing editing and removing entries from the source model. More...
| Import Statement: | import QtModelsToolkit . |
WritableProxyModel is a QAbstractProxyModel that allows you to modify the data without modifying the source model. It is useful for implementing a "dirty" state for a model, where you can modify the data and then commit the changes to the source model.
Supported features (reimplemented):
setDatasetItemDataremoveRowsinsertRowsmoveRows (TODO)toVariantMapLimitations:
If true, the removals are synced with the source model. Removing an edited item from source will also remove it from proxy. If false, eemoving an edited item from source will not remove it from proxy. It will become a newly inserted row