~/talk

QProperty - QML property binding in C++

Talkat NDC TechTown 2020 · 2020-08-31..09-03· [c-and-cpp]
links:none on file
slides:none on file

Qt6 adds QProperty to bring QML-style property bindings into plain C++. The talk shows a working C++ implementation (copy‑pasteable C++11) that supports lazy evaluation (C++ bindings evaluate on read, unlike QML’s eager init), partial binding (observers register only accessed dependencies), change callbacks instead of Qt signals, and aliasing. Two integration proposals are compared: a qprivate-property/macros approach and a bindable keyword approach; code lives in dev branch and runs, but MOC and API stability remain unresolved.

AI-written summary · about

  1. 0:00Intro
  2. 0:29Overview
  3. 2:18What is a QML property binding?
  4. 3:08What is a binding expression?
  5. 4:02How to change a property binding in run-time
  6. 6:51QML property binding evaluation
  7. 9:00QML property binding partial evaluation
  8. 12:11C++ property binding
  9. 13:17C++ vs QML property binding
  10. 22:28Partial binding evaluation
  11. 26:00QProperty callbacks - "signals"
  12. 26:34C++ vs QML property signals
  13. 27:54How to change property binding in run-time? ...
  14. 29:09C++ vs QML property alias
  15. 29:55QProperty summary
  16. 32:08Current status in dev branch
  17. 35:30Expand Q_PRIVATE_QPROPERTY
  18. 37:52MOC generates body of the functions
  19. 43:42QObject from Qt5 to Qt6 - option 2
  20. 46:49What do we get in the end? - option 2
  21. 47:11Option 1 vs Option 2
  22. 49:38Useful links
~/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.