以下成员源于类 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 ().