以下成员源于类 QColorDialog 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
windowIconText
: QString
(obsolete)
|
dumpObjectInfo () |
(obsolete)
|
dumpObjectTree () |
(obsolete)
QWidget *
|
extension () const |
(obsolete)
bool
|
isEnabledToTLW () const |
(obsolete)
bool
|
isTopLevel () const |
(obsolete)
Qt::Orientation
|
orientation () const |
(obsolete)
void
|
setExtension (QWidget * extension ) |
(obsolete)
void
|
setOrientation (Qt::Orientation orientation ) |
(obsolete)
QWidget *
|
topLevelWidget () const |
(obsolete)
void
|
showExtension (bool showIt ) |
(obsolete)
QRgb
|
getRgba (QRgb initial = 0xffffffff, bool * ok = nullptr, QWidget * parent = nullptr) |
[static]
QRgb
QColorDialog::
getRgba
(
QRgb
initial
= 0xffffffff,
bool
*
ok
= nullptr,
QWidget
*
parent
= nullptr)
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Pops up a modal color dialog to allow the user to choose a color and an alpha channel (transparency) value. The color+alpha is initially set to initial . The dialog is a child of parent .
若 ok is non-null, *ok is set to true if the user clicked OK , and to false if the user clicked Cancel.
If the user clicks Cancel, the initial value is returned.
使用 QColorDialog::getColor () instead, passing the QColorDialog::ShowAlphaChannel 选项。