Obsolete Members for QToolButton

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

公共函数

(obsolete) QIcon iconSet (bool on ) const
(obsolete) void setIconSet (const QIcon & set , bool on )
(obsolete) void setOffIconSet (const QIcon & set )
(obsolete) void setOnIconSet (const QIcon & set )

成员函数文档编制

QIcon QToolButton:: iconSet ( bool on ) const

这是重载函数。

Since Qt 3.0, QIcon contains both the On and Off icons.

For ease of porting, this function ignores the on parameter and returns the icon property. If you relied on the on parameter, you probably want to update your code to use the QIcon On/Off mechanism.

void QToolButton:: setIconSet (const QIcon & set , bool on )

这是重载函数。

Since Qt 3.0, QIcon contains both the On and Off icons.

For ease of porting, this function ignores the on parameter and sets the icon property. If you relied on the on parameter, you probably want to update your code to use the QIcon On/Off mechanism.

另请参阅 icon and QIcon::State .

void QToolButton:: setOffIconSet (const QIcon & set )

使用 setIcon () 代替。

另请参阅 offIconSet ().

void QToolButton:: setOnIconSet (const QIcon & set )

使用 setIcon () 代替。

另请参阅 onIconSet ().