Qt 4.8: Models and Views: Dynamic List ListView Example

Qt Reference Documentation

# Models and Views: Dynamic List ListView Example

Files:

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

This example shows how items can be dynamically added to and removed from a ListModel, and how these list modifications can be animated.

dynamiclist.qml