~/talk

API Design and QML

Talkat Akademy 2020 · 2020-09-04..09-11· [api-design]
links:none on file
slides:none on file

Defines two concrete QML API kinds — visual leaves (controls) and container branches (layouts) — and gives exact rules: inherit from Control/AbstractButton for clickable widgets, drive sizing from implicitWidth/implicitHeight, keep backgrounds subservient, tolerate bad inputs, and use attached properties for child→parent data. Describes the annotation pattern and cites qbs as a non‑visual example. Implements a PageRouter (pagefounder) inspired by React/Flutter using attached properties with methods like push/pop/navigateTo and documents it with diagrams; implementation is complete and used.

AI-written summary · about

  1. 0:00Introduction to API design
  2. 1:13Types of QML APIs
  3. 3:52Designing leaf components
  4. 5:58Designing branch components
  5. 7:43Non-visual QML APIs
  6. 10:13General API design guidelines
  7. 13:47Documentation best practices
  8. 14:07Case study: Page router API
  9. 17:59Q&A
~/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.