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참조하세요 .

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