Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
Description
The QML compiler translates colour properties to strings, it seems:
qt5-build-2/qtdeclarative/tests/auto/qml/qmltc/.qmltc/tst_qmltc_nodiskcache/properties.cpp:86: this->m_colorP = QStringLiteral("blue");
This is needlessly inefficient. For named values, it should use QColorConstants::blue, in this case, and for RGB triples or ARGB quads the corresponding QColor(int, ..., int) ctor.
Attachments
Issue Links
- relates to
-
QTBUG-105538 qmltc evolution collection task
- Open
-
QTBUG-118323 qmllint: produce warnings for string to valuetype conversions
- Open
-
QTBUG-101389 Port QColor's from-string API to QAnyStringView
- Closed