Obsolete Members for QStyle
The following members of class QStyle are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated) virtual QPixmap | standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const = 0 |
Member Function Documentation
[pure virtual, deprecated]
QPixmap QStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const
This function is deprecated. We strongly advise against using it in new code.
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().
See also standardIcon().