Sur cette page

QPixmapCache::Key Class

class QPixmapCache::Key

La classe QPixmapCache::Key peut être utilisée pour un accès efficace à la classe QPixmapCache. Plus....

Fonctions publiques

Key()
~Key()
bool isValid() const
void swap(QPixmapCache::Key &other)
(since 6.6) size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)

Description détaillée

Utilisez QPixmapCache::insert() pour recevoir une instance de clé générée par le cache de pixmap. Vous pouvez stocker la clé dans vos propres objets pour une correspondance objet-pixmap très efficace.

Documentation des fonctions membres

Key::Key()

Construit un objet Key vide.

[noexcept] Key::~Key()

Détruit la clé.

[noexcept] bool Key::isValid() const

Retourne true s'il y a une image en cache associée à cette clé. Sinon, si la pixmap a été vidée, la clé n'est plus valide.

[noexcept] void Key::swap(QPixmapCache::Key &other)

Remplace cette touche par other. Cette opération est très rapide et n'échoue jamais.

Non-membres apparentés

[noexcept, since 6.6] size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)

Renvoie la valeur de hachage pour key, en utilisant seed comme base de calcul.

Cette fonction a été introduite dans 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.