以下成員源於類 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
)
This function is deprecated since 6.6. We strongly advise against using it in new code.
使用 isValidColorName () 代替。
返迴
true
若
name
is a valid color name and can be used to construct a valid
QColor
對象,否則返迴 false。
It uses the same algorithm used in setNamedColor ().
另請參閱 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.
這是重載函數。
使用 isValidColorName () 代替。
[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.
這是重載函數。
使用 isValidColorName () 代替。
[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.
使用 fromString () 代替。
設置 RGB 值為此 QColor to name ,可能是這些格式之一:
transparent
- 錶示缺乏顔色。
顔色無效若 name 無法剖析。
另請參閱 QColor (), name (),和 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.
這是重載函數。
使用 fromString () 代替。
[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.
這是重載函數。
使用 fromString () 代替。