Obsolete Members for QIcon
QIcon 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated in 6.0) QSize | actualSize(QWindow *window, const QSize &size, QIcon::Mode mode = Normal, QIcon::State state = Off) const |
(deprecated in 6.0) QPixmap | pixmap(QWindow *window, const QSize &size, QIcon::Mode mode = Normal, QIcon::State state = Off) const |
멤버 함수 문서
[deprecated in 6.0]
QSize QIcon::actualSize(QWindow *window, const QSize &size, QIcon::Mode mode = Normal, QIcon::State state = Off) const
이 함수는 6.0부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
대신 actualSize(size)를 사용하세요.
요청된 window size , mode, state 에 대한 아이콘의 실제 크기를 반환합니다.
픽셀맵은 요청된 크기보다 작을 수 있습니다. 반환된 크기는 디바이스에 독립적인 픽셀 단위입니다(이는 고해상도 픽셀맵과 관련이 있습니다).
actualSize(), pixmap() 및 paint()도 참조하세요 .
[deprecated in 6.0]
QPixmap QIcon::pixmap(QWindow *window, const QSize &size, QIcon::Mode mode = Normal, QIcon::State state = Off) const
이 함수는 6.0부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
대신 pixmap(size, devicePixelRatio)를 사용하세요.
요청된 window size , mode, state 이 포함된 픽셀맵을 반환하고 필요한 경우 픽셀맵을 생성합니다.
픽셀맵은 요청된 크기보다 작을 수 있습니다. window 이 고해상도 디스플레이인 경우 픽셀맵이 더 클 수 있습니다. 이 경우 devicePixelRatio가 1보다 커집니다.
actualSize() 및 paint()도 참조하세요 .
© 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.