Obsolete Members for QColor
QColor 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
공개 함수
(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)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` isValidColorName()`를 사용하십시오.
name 가 유효한 색상 이름이고 유효한 QColor 객체를 생성하는 데 사용할 수 있는 경우 true 를 반환하고, 그렇지 않으면 false를 반환합니다.
이 함수는 fromString()에서 사용되는 것과 동일한 알고리즘을 사용합니다.
fromString()도 참조하십시오 .
[static noexcept, deprecated in 6.6] bool QColor::isValidColor(QLatin1StringView name)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` isValidColorName()`를 사용하십시오.
이 함수는 오버로드된 함수입니다.
[static noexcept, deprecated in 6.6] bool QColor::isValidColor(QStringView name)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` isValidColorName()`를 사용하십시오.
이 함수는 오버로드된 함수입니다.
[deprecated in 6.6] void QColor::setNamedColor(const QString &name)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` fromString()`를 사용하십시오.
이 QColor 의 RGB 값을 name 로 설정합니다. 이 값은 다음 형식 중 하나를 따를 수 있습니다:
- #RGB (R, G, B 각각은 1자리 16진수입니다)
- #RRGGBB
- #AARRGGBB (5.2부터)
- #RRRGGGBBB
- #RRRRGGGGBBBB
- World Wide Web Consortium에서 제공하는 SVG 색상 키워드 이름 목록에 정의된 색상 이름; 예를 들어, "steelblue" 또는 "gainsboro". 이러한 색상 이름은 모든 플랫폼에서 작동합니다. 이러한 색상 이름은 Qt::GlobalColor 열거형에서 정의된 것과는 다르다는 점에 유의하십시오. 예를 들어, "green"과 Qt::green 은 같은 색상을 가리키지 않습니다.
transparent- 색상이 없음을 나타냅니다.
name 를 구문 분석할 수 없는 경우 해당 색상은 유효하지 않습니다.
QColor(), name(), isValid()도 참조하십시오 .
[deprecated in 6.6] void QColor::setNamedColor(QLatin1StringView name)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` fromString()`를 사용하십시오.
이 함수는 오버로드된 함수입니다.
[deprecated in 6.6] void QColor::setNamedColor(QStringView name)
이 함수는 6.6 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` fromString()`을 사용하십시오.
이 함수는 오버로드된 함수입니다.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.