~/talk

Advanced Qt - A Deep Dive 5/6 - ModelView Part 1

links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction to ModelView
  2. 5:05ModelView concept and benefits
  3. 10:24ModelView architecture overview
  4. 17:12QModelIndex and data roles
  5. 23:21Implementing a list model
  6. 39:46Table model implementation
  7. 41:32Demo of editable model
  8. 55:43Persistent model indexes
  9. 1:00:39Tree models preview
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.