Key Class
class QPixmapCache::KeyQPixmapCache::Key クラスは、QPixmapCache への効率的なアクセスに使用できます。 ... 詳細
パブリック関数
関連する非メンバー
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed = 0) |
詳細説明
QPixmapCache::insert() を使用して、pixmap キャッシュによって生成された Key のインスタンスを受け取ります。独自のオブジェクトにキーを格納することで、オブジェクトとピクセルの一対一のマッピングを非常に効率的に行うことができます。
メンバ関数ドキュメント
Key::Key()
空の Key オブジェクトを構築します。
[noexcept]
Key::~Key()
鍵を破壊する。
[noexcept]
bool Key::isValid() const
このキーに関連付けられているキャッシュされた pixmap がある場合はtrue
を返す。そうでない場合は、pixmapがフラッシュされたため、そのキーは無効です。
[noexcept]
void Key::swap(QPixmapCache::Key &other)
このキーをother と交換する。この操作は非常に速く、失敗することはない。
関連する非会員
[noexcept, since 6.6]
size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)
key のハッシュ値を返します。計算のシードとしてseed を使用します。
この関数は 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.