QPixmapCache::Key Class
class QPixmapCache::KeyLa classe ` QPixmapCache::Key ` può essere utilizzata per accedere in modo efficiente a ` QPixmapCache`. Altro...
Funzioni pubbliche
Elementi non membri correlati
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed = 0) |
Descrizione dettagliata
Utilizzare QPixmapCache::insert() per ricevere un'istanza di Key generata dalla cache delle mappe di pixel. È possibile memorizzare la chiave nei propri oggetti per ottenere una mappatura uno a uno molto efficiente tra oggetto e mappa di pixel.
Documentazione delle funzioni membro
Key::Key()
Crea un oggetto Key vuoto.
[noexcept] Key::~Key()
Elimina la chiave.
[noexcept] bool Key::isValid() const
Restituisce ` true ` se esiste una mappa di pixel memorizzata nella cache associata a questa chiave. Altrimenti, se la mappa di pixel è stata svuotata, la chiave non è più valida.
[noexcept] void Key::swap(QPixmapCache::Key &other)
Scambia questa chiave con other. Questa operazione è molto veloce e non fallisce mai.
Correlati - Non iscritti
[noexcept, since 6.6] size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)
Restituisce il valore hash per key, utilizzando seed come seme per il calcolo.
Questa funzione è stata introdotta in 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.