![]() |
Qt 6.x
The Qt SDK
|
#include <qiconengine.h>
Public Attributes | |
QSize | size |
QIcon::Mode | mode |
QIcon::State | state |
qreal | scale |
QPixmap | pixmap |
\inmodule QtGui
This struct represents arguments to the virtual_hook() function when the id parameter is QIconEngine::ScaledPixmapHook.
The struct provides a way for icons created via \l QIcon::fromTheme() to return pixmaps that are designed for the current \l {High DPI}{device pixel ratio}. The scale for such an icon is specified using the \l {Icon Theme Specification - Directory Layout}{Scale directory key} in the appropriate index.theme
file.
Icons created via other approaches will return the same result as a call to \l pixmap() would, and continue to benefit from Qt's \l {High Resolution Versions of Images}{"@nx" high DPI syntax}.
Definition at line 40 of file qiconengine.h.
QIcon::Mode QIconEngine::ScaledPixmapArgument::mode |
Definition at line 43 of file qiconengine.h.
QPixmap QIconEngine::ScaledPixmapArgument::pixmap |
Definition at line 46 of file qiconengine.h.
qreal QIconEngine::ScaledPixmapArgument::scale |
Definition at line 45 of file qiconengine.h.
QSize QIconEngine::ScaledPixmapArgument::size |
Definition at line 42 of file qiconengine.h.
QIcon::State QIconEngine::ScaledPixmapArgument::state |
Definition at line 44 of file qiconengine.h.