Obsolete Members for QColorDialog

以下成员源于类 QColorDialog 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

特性

公共函数

(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 选项。