Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
6.6.0
-
None
-
5f84cf00e (dev), aca69f832 (dev), 9cdd485c2 (dev), cdb254058 (dev)
Description
It seems that qmllint does not warn about string to value type conversion in QML.
An example might be the `vector2d` types:
import QtQuick Item { property vector2d myVector: "1.2,1.3" }
Here a list of candidates that can be constructed from strings that qmllint should know about
- point, like "30x50"
- rect, like "30, 50, 100x150"
- size, like "30x50"
- color, like "blue" (that already has its own bugreport in QTBUG-100137)
- quaternion, like "1,2,3,4" ("scalar,x,y,z")
- vectorXd, like "1,2" or "1,2,3" or "1,2,3,4"
Attachments
Issue Links
- relates to
-
QTBUG-119890 qmllint warnings: reach feature parity with QtCreator
- Reported
-
QTBUG-100137 qmlcompiler should construct QColors using QColorConstants, not by string
- Reported
- resulted from
-
QTBUG-118175 qmltc/qmllint issues with size value type
- Closed
- resulted in
-
QTBUG-126404 qmltc doesn't know how to use value type constructors
- Reported