~/talk

The 8 mistakes of QtQuick newcomers

Talkat Qt World Summit 2015 · 2015-10-06..10-07· [frontend-architecture]
links:none on file
slides:none on file

Eight concrete pitfalls and fixes for Qt Quick newcomers: bad JavaScript habits lead to untyped, blocking code so limit JavaScript to event handlers and favor declarative bindings; component.onCompleted order is undefined so centralize finalization; use Loader + Repeater for automatic instantiation and memory management instead of manual create/destroy; opacity 0 still costs rendering so set visible=false at animation end via ScriptAction; prefer framework animations over timers and use NumberAnimation/rotation instead of Timer-driven frame updates; keep business logic in C++ models and UI in QML, and move heavy drawing to QQuickItem/OpenGL when needed.

AI-written summary · about

  1. 0:00Introduction
  2. 4:20JavaScript is your friend
  3. 8:26Compromise on completed
  4. 10:22JavaScript fuzzyness
  5. 13:47Loader
  6. 21:17Visibility
  7. 25:16Dont over generalize
  8. 29:17Use animation not timers
  9. 31:50Scope mixing
  10. 39:30Visibility opacity binding
  11. 40:00Dont stand on switches
  12. 40:23Noise
  13. 42:50JavaScript
  14. 43:15Worker Script
  15. 44:00Performance
  16. 47:15Rectangle
  17. 48:15Gammaray
~/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.