Qt 4.8
|
The VisualDataModel encapsulates a model and delegate. More...
The VisualDataModel encapsulates a model and delegate.
A VisualDataModel encapsulates a model and the delegate that will be instantiated for items in the model.
It is usually not necessary to create VisualDataModel elements. However, it can be useful for manipulating and accessing the modelIndex when a QAbstractItemModel subclass is used as the model. Also, VisualDataModel is used together with Package to provide delegates to multiple views.
The example below illustrates using a VisualDataModel with a ListView.