以下成員源於類 QStyle 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
virtual QPixmap
|
standardPixmap (StandardPixmap standardPixmap , const QStyleOption * option = Q_NULLPTR, const QWidget * widget = Q_NULLPTR) const = 0 |
[pure virtual]
QPixmap
QStyle::
standardPixmap
(
StandardPixmap
standardPixmap
, const
QStyleOption
*
option
= Q_NULLPTR, const
QWidget
*
widget
= Q_NULLPTR) const
Returns a pixmap for the given standardPixmap .
A standard pixmap is a pixmap that can follow some existing GUI style or guideline. The option argument can be used to pass extra information required when defining the appropriate pixmap. The widget argument is optional and can also be used to aid the determination of the pixmap.
Developers calling standardPixmap() should instead call standardIcon () Developers who re-implemented standardPixmap() should instead re-implement standardIcon ().
另請參閱 standardIcon ().