~/talk

How Not to Design Reusable Components in QML

Talkat Qt World Summit 2022 · on Wednesday, 2022-11-09· [frontend-architecture]
links:none on file
slides:none on file

Three years of rebuilding Autodesk’s CAD UI with QML surfaces concrete anti-patterns and fixes: avoid arbitrary Z indices and hard-coded sizes or colors; stop relying on parent IDs or context properties—expose needed properties instead; never set anchors/X/Y inside a component, provide implicitSize sensible defaults; separate delegates from reusable components; use a non-positioner top-level item and internal positioners; use qml-lint/qml language server and adopt Qt Quick Controls patterns to make components composable and robust.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22What makes a bad component
  3. 2:28Arbitrary Z index misuse
  4. 3:55Relying on parent properties
  5. 6:00Internal positioning issues
  6. 7:02Missing sensible defaults
  7. 8:47Mixing delegates with components
  8. 10:13Top level layout problems
  9. 11:59Design pattern importance
  10. 13:22Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.