Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
90e1e5b85 (dev), 642d755f8 (6.9), 7b54a43b0 (6.8), 44beb8080 (dev), 03303878f (6.9), cb6c8ca9f (6.8)
-
framework-content 2, framework-content 3
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. UPD: moved to https://bugreports.qt.io/browse/QTBUG-133272Â
- 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 Unable to render embedded object: File (==}} instead of {{==}} or {{{}) not found.=) 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
-