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 ().