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 (6.6)) void |
setNamedColor(const QString &name) |
(deprecated (6.6)) void |
setNamedColor(QStringView name) |
(deprecated (6.6)) void |
setNamedColor(QLatin1StringView name) |
(deprecated (6.6)) bool |
isValidColor(const QString &name) |
(deprecated (6.6)) bool |
isValidColor(QStringView name) |
(deprecated (6.6)) bool |
isValidColor(QLatin1StringView name) |
[static]
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, since 5.10]
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.
This function was introduced in Qt 5.10.
[static, since 5.8]
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.
This function was introduced in Qt 5.8.
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().
[since 5.10]
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.
This function was introduced in Qt 5.10.
[since 5.8]
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.
This function was introduced in Qt 5.8.
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: