This struct was introduced in Qt 5.9.
QIcon::Mode | mode |
QPixmap | pixmap |
qreal | scale |
QSize | size |
QIcon::State | state |
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
QIcon::fromTheme
() to return pixmaps that are designed for the current
设备像素比率
. The scale for such an icon is specified using the
Scale directory key
in the appropriate
index.theme
文件。
Icons created via other approaches will return the same result as a call to pixmap () would, and continue to benefit from Qt's "@nx" high DPI syntax .
另请参阅 virtual_hook (), QIconEngine::IconEngineHook ,和 高 DPI 图标 .
This variable holds the requested mode of the pixmap.
另请参阅 QIcon::Mode .
This variable holds the pixmap that is the best match for the given size , mode , state ,和 scale . This is an output parameter that is set after calling virtual_hook ().
This variable holds the requested scale of the pixmap.
This variable holds the requested size of the pixmap.
This variable holds the requested state of the pixmap.
另请参阅 QIcon::State .