WritableProxyModel QML Type

Proxy allowing editing and removing entries from the source model. More...

Import Statement: import QtModelsToolkit .

Properties

Detailed Description

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):

Limitations:

Property Documentation

dirty : bool

Indicates if the proxy was modified.


syncedRemovals : bool

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