Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# Models and Views: Expanding Delegate ListView Example

Files:

- declarative/modelviews/listview/expandingdelegates/expandingdelegates.svg
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/dynamiclist.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/expandingdelegates.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/highlight.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/highlightranges.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/sections.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/content/PetsModel.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/content/PressAndHoldButton.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/content/RecipesModel.qml
- declarative/modelviews/listview/expandingdelegates/qml/expandingdelegates/content/TextButton.qml
- declarative/modelviews/listview/expandingdelegates/main.cpp
- declarative/modelviews/listview/expandingdelegates/expandingdelegates.pro
- declarative/modelviews/listview/expandingdelegates/expandingdelegates.qmlproject

This example shows how to create a dynamic delegate, which expands when selected.

expandingdelegates.qml