QPixmapCache::Key Class
class QPixmapCache::KeyLa clase QPixmapCache::Key se puede utilizar para acceder de forma eficiente a QPixmapCache. Más...
Funciones públicas
No miembros relacionados
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed = 0) |
Descripción detallada
Utilice QPixmapCache::insert() para recibir una instancia de Key generada por la caché de pixmap. Puede almacenar la clave en sus propios objetos para un mapeo objeto-pixmap uno-a-uno muy eficiente.
Documentación de las funciones miembro
Key::Key()
Construye un objeto Key vacío.
[noexcept] Key::~Key()
Destruye la llave.
[noexcept] bool Key::isValid() const
Devuelve true si hay un mapa de píxeles en caché asociado a esta clave. En caso contrario, si el mapa de píxeles se ha vaciado, la clave ya no es válida.
[noexcept] void Key::swap(QPixmapCache::Key &other)
Cambia esta tecla por other. Esta operación es muy rápida y nunca falla.
Relacionados No miembros
[noexcept, since 6.6] size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)
Devuelve el valor hash para key, usando seed para sembrar el cálculo.
Esta función se introdujo en 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.