Tools for making improved models with Qt
summary
Presents a concrete solution: a template updatable model template that runs a custom updateCollection diff algorithm (requires a stable key and a hasChanged predicate) to emit precise insert, remove and dataChanged signals instead of model resets. Bundles adjacent operations to emit fewer signals, returns counts of inserts/removals/updates, and powers a QML-friendly sort proxy model that emits row moves so ListView animations work. Works for list models, not trees; demonstrated by replacing a per-second reset process monitor and improving UX.
AI-written summary · about
chapters (3)
related talks
53mQt Quick Best Practices and Design Patterns
01h 22mArranging Items, QML Components and Debugging QML (part 4/4)
05mGenerating UI with C++, boost & Qt
28mA Desktop UI with Qt Quick
49mQt Quick Best Practices and Design Patterns
34mMobiconf 2018: Bj Kandel, Zalando
19mChange Detection Reinvented
35mQML in Qt6
