Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
framework-content 2
Description
This applies to Qt source code, example source code, and documentation snippets.
Examples:
- Replace "property var" or "property variant" with the strongly-typed equivalent where possible
- property var items -> property list<string> items: https://github.com/qt/qtdeclarative/blob/v6.8.1/src/quickcontrols/doc/snippets/qtquickcontrols-spinbox-textual.qml#L14
- property var easingCurve -> property list<real> easingCurve: https://github.com/qt/qtdeclarative/blob/v6.8.1/examples/quick/animation/easing/easing.qml#L14
- Replace injected "model"/"modelData" properties with required properties to avoid unqualified access
- Apply QTP0001 instead of manually setting RESOURCE_PREFIX "/qt/qml"
- Apply type annotations to JavaScript functions, for AOT compilation
- function move(mouseX) -> function move(mouseX: int): https://github.com/qt/qtvirtualkeyboard/blob/v6.8.1/src/components/AlternativeKeys.qml#L96
- function append(text) -> function append(text: string): https://github.com/qt/qtdeclarative/blob/v6.8.1/examples/quick/animation/behaviors/wigglytext.qml#L25
- JavaScript: Use strict (in)equality (=== or !== instead of == or !=) where types are well-defined
Attachments
Issue Links
- is required for
-
QTBUG-84322 Qt Virtual Keyboard Changes in Qt 6
- Open
- split from
-
QTBUG-110934 Make our published QML code as free of qmllint errors/warnings as possible
- Reported