Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
63042da9c94fd8d04583631249a7bfa54ba2656f (qt/qtdeclarative/5.13)
Description
https://doc.qt.io/qt-5/qtquick-bestpractices.html
This is an unspoken rule that should be spoken.
- Imperative code interferes with tooling, as it requires JavaScript, which e.g. Qt Quick Designer doesn't support.
- It delays errors that could be found at build time (with qtquickcompiler?) to run time.
- It's slow. All your bindings are first evaluated with null objects and then again with the real objects.
Attachments
For Gerrit Dashboard: QTBUG-79903 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
280970,4 | Doc: add section on imperative vs declarative to best practices page | 5.13 | qt/qtdeclarative | Status: MERGED | +2 | 0 |