This struct represents arguments to the virtual_hook()
function when the id
parameter is ScaledPixmapHook
.
The struct provides a way for icons created via fromTheme()
to return pixmaps that are designed for the current device pixel ratio. The scale for such an icon is specified using the Scale directory key in the appropriate index.theme
file.
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
.
See also
virtual_hook()
IconEngineHook
High DPI Icons
This variable holds The requested mode of the pixmap..
See also
Mode
This variable holds The pixmap that is the best match for the given size , mode , state , and 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..
See also
State
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.