QPixmapCache::Key Class
class QPixmapCache::KeyQPixmapCache::Key 클래스를 사용하면 QPixmapCache 에 효율적으로 접근할 수 있습니다. 더 보기...
공개 함수
관련 비멤버
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed = 0) |
자세한 설명
QPixmapCache::insert()를 사용하여 픽스맵 캐시에 의해 생성된 Key 인스턴스를 수신할 수 있습니다. 이 키를 자체 객체에 저장하여 매우 효율적인 일대일 객체-픽스맵 매핑을 구현할 수 있습니다.
멤버 함수 설명
Key::Key()
빈 Key 객체를 생성합니다.
[noexcept] Key::~Key()
키를 삭제합니다.
[noexcept] bool Key::isValid() const
이 키와 연관된 캐시된 픽스맵이 있으면 ` true `을 반환합니다. 그렇지 않은 경우, 픽스맵이 플러시되었으므로 해당 키는 더 이상 유효하지 않습니다.
[noexcept] void Key::swap(QPixmapCache::Key &other)
이 키를 other 와 교환합니다. 이 작업은 매우 빠르며 절대 실패하지 않습니다.
관련 비회원
[noexcept, since 6.6] size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)
seed 를 계산의 시드로 사용하여 key 의 해시 값을 반환합니다.
이 함수는 Qt 6.6에서 도입되었습니다.
© 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.