![]() |
Qt 4.8
|
The VisualItemModel allows items to be provided to a view. More...
The VisualItemModel allows items to be provided to a view.
A VisualItemModel contains the visual items to be used in a view. When a VisualItemModel is used in a view, the view does not require a delegate since the VisualItemModel already contains the visual delegate (items).
An item can determine its index within the model via the index attached property.
The example below places three colored rectangles in a ListView.