Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.3, 4.7.4
-
None
Description
QVariant QDeclarativeStringConverters::variantFromString(const QString &s) creates warnings when trying to convert s into a QColor
See for example: QTCREATORBUG-5497
QVariant QDeclarativeStringConverters::variantFromString(const QString &s) { if (s.isEmpty()) return QVariant(s); bool ok = false; QRectF r = rectFFromString(s, &ok); if (ok) return QVariant(r); QColor c = colorFromString(s, &ok); <--- this will trigger a warning if the string does not start with # and is not a color name if (ok) return QVariant(c); QPointF p = pointFFromString(s, &ok); if (ok) return QVariant(p); QSizeF sz = sizeFFromString(s, &ok); if (ok) return QVariant(sz); QVector3D v = vector3DFromString(s, &ok); if (ok) return qVariantFromValue(v); return QVariant(s); }
Attachments
Issue Links
- Is tested by
-
QTCREATORBUG-5497 Warnings about colors when opening Dial example
- Closed