이 페이지에서

QIconEngine::ScaledPixmapArgument Struct

struct QIconEngine::ScaledPixmapArgument

공용 변수

QIcon::Mode mode
QPixmap pixmap
qreal scale
QSize size
QIcon::State state

상세 설명

이 구조체는 ` id ` 매개변수가 ` QIconEngine::ScaledPixmapHook`일 때 ` virtual_hook()` 함수의 인수를 나타냅니다.

이 구조체는 QIcon::fromTheme()을 통해 생성된 아이콘이 현재 장치 픽셀 비율에 맞게 설계된 픽스맵을 반환할 수 있는 방법을 제공합니다. 이러한 아이콘의 배율은 해당 index.theme 파일의 Scale 디렉터리 키를 사용하여 지정됩니다.

다른 방식으로 생성된 아이콘은 pixmap() 호출과 동일한 결과를 반환하며, Qt XML의 "@nx" high DPI syntax 의 이점을 계속 누릴 수 있습니다.

virtual_hook(), QIconEngine::IconEngineHook 및 High DPI Icons도 참조하십시오 .

멤버 변수 문서

QIcon::Mode ScaledPixmapArgument::mode

이 변수는 픽스맵의 요청된 모드를 저장합니다.

QIcon::Mode도 참조하십시오 .

QPixmap ScaledPixmapArgument::pixmap

이 변수는 주어진 size, mode, state 및 scale 중 가장 잘 일치하는 픽스맵을 저장합니다. 이는 virtual_hook()을 호출한 후 설정되는 출력 매개변수입니다.

qreal ScaledPixmapArgument::scale

이 변수에는 픽스맵의 요청된 크기가 저장됩니다.

QSize ScaledPixmapArgument::size

이 변수는 픽스맵의 요청된 크기를 저장합니다.

QIcon::State ScaledPixmapArgument::state

이 변수는 픽스맵의 요청된 상태를 저장합니다.

QIcon::State도 참조하십시오 .

© 2026 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.