The following members of class QColor are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated in 6.6) void |
setNamedColor(const QString &name) |
(deprecated in 6.6) void |
setNamedColor(QLatin1StringView name) |
(deprecated in 6.6) void |
setNamedColor(QStringView name) |
(deprecated in 6.6) bool |
isValidColor(const QString &name) |
(deprecated in 6.6) bool |
isValidColor(QLatin1StringView name) |
(deprecated in 6.6) bool |
isValidColor(QStringView name) |
[static, deprecated in 6.6] bool QColor::isValidColor(const QString &name)This function is deprecated since 6.6. We strongly advise against using it in new code.
Use isValidColorName() instead.
Returns true if the name is a valid color name and can be used to construct a valid QColor object, otherwise returns false.
It uses the same algorithm used in setNamedColor().
See also setNamedColor().
[static noexcept, deprecated in 6.6] bool QColor::isValidColor(QLatin1StringView name)This function is deprecated since 6.6. We strongly advise against using it in new code.
This is an overloaded function.
Use isValidColorName() instead.
[static noexcept, deprecated in 6.6] bool QColor::isValidColor(QStringView name)This function is deprecated since 6.6. We strongly advise against using it in new code.
This is an overloaded function.
Use isValidColorName() instead.
[deprecated in 6.6] void QColor::setNamedColor(const QString &name)This function is deprecated since 6.6. We strongly advise against using it in new code.
Use fromString() instead.
Sets the RGB value of this QColor to name, which may be in one of these formats:
transparent - representing the absence of a color.The color is invalid if name cannot be parsed.
See also QColor(), name(), and isValid().
[deprecated in 6.6] void QColor::setNamedColor(QLatin1StringView name)This function is deprecated since 6.6. We strongly advise against using it in new code.
This is an overloaded function.
Use fromString() instead.
[deprecated in 6.6] void QColor::setNamedColor(QStringView name)This function is deprecated since 6.6. We strongly advise against using it in new code.
This is an overloaded function.
Use fromString() instead.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: