qt-model-view
Installation
SKILL.md
Qt Model/View Architecture
Architecture Overview
Data Source ──→ Model ──→ [Proxy Model] ──→ View ──→ Delegate (renders cells)
↕ ↕
QAbstractItemModel QAbstractItemView
Separate data (model) from presentation (view). The delegate handles painting and editing per-cell. Proxy models layer transformations (sort, filter) without modifying the source model.
Choosing a Model Base Class
| Base class | When to use |
|---|---|
QStringListModel |
Simple list of strings |
QStandardItemModel |
Quick prototype or small dataset |
QAbstractListModel |
Custom list with single column |
Related skills