Advanced Qt - A Deep Dive 5/6 - ModelView Part 1
summary
A concrete walkthrough shows replacing a widget-based thumbnail loader with a model adapter to avoid loading 5,000 images into X memory, using a custom adapter for an XML DB, a delegate that paints thumbnail cells, and built-in models like QFileSystemModel and QAbstractListModel. Code examples implement rowCount, data, setData, beginInsertRows/endInsertRows and emit dataChanged; proxy usage appears via QSortFilterProxyModel to sort/filter without touching source data.
AI-written summary · about
chapters (9)
- 0:00Introduction to ModelView
- 5:05ModelView concept and benefits
- 10:24ModelView architecture overview
- 17:12QModelIndex and data roles
- 23:21Implementing a list model
- 39:46Table model implementation
- 41:32Demo of editable model
- 55:43Persistent model indexes
- 1:00:39Tree models preview
related talks
02h 16mWORKSHOP: Back to Basics: writing a model
25mBest Practices for using QML and QtQuick
20mHow to push the most performance possible out of Qt applications
23mQt Quick : Don't make these mistakes!
28mImplementing Modern Design Patterns with Qt
01h 00mQt for MCUs – A Deep Dive
49mHow to scale QML based projects an Architecture vision
35mQtinUse - UI & System Design Challenges for the NxG Lighting Tool
