Key Class

class QPixmapCache::Key

QPixmapCache::Key 클래스는 QPixmapCache...에 효율적으로 액세스하는 데 사용할 수 있습니다... .

공용 함수

Key()
~Key()
bool isValid() const
void swap(QPixmapCache::Key &other)
(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에 도입되었습니다.

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