~/talk

Advanced Qt - A Deep Dive 6/6 - ModelView Part 2

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

Shows how to implement a scalable on‑demand tree model by subclassing QAbstractItemModel to wrap an existing QObject hierarchy (an object inspector example), using createIndex/internalPointer to store item pointers, and implementing index and parent methods correctly (rowCount/columnCount/data too). Covers persistent vs transient QModelIndex, a model_test utility, and practical proxy models (filter, sort, flip, colorize) with pitfalls. Demonstrates nonblocking loading via worker threads but requires emitting change notifications from the main thread.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Tree Models
  3. 2:30Models
  4. 8:35Model Indexes
  5. 16:10Why you shouldnt keep Model Indexes
  6. 17:15Example
  7. 17:50User Interface
  8. 20:31Demonstration
  9. 21:49Code Generator
  10. 25:19Column Count
  11. 28:17Row count
  12. 31:39Dialogue
  13. 34:49Review
~/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.