Obsolete Members for QPixmapCache

I seguenti membri della classe ` QPixmapCache ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.

Membri pubblici statici

(deprecated in 6.6) bool replace(const QPixmapCache::Key &key, const QPixmap &pixmap)

Documentazione sulle funzioni membro

[static, deprecated in 6.6] bool QPixmapCache::replace(const QPixmapCache::Key &key, const QPixmap &pixmap)

Questa funzione è deprecata a partire dalla versione 6.6. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

Utilizzare invece ` remove(key); key = insert(pixmap); `.

Sostituisce la mappa di pixel associata all'key specificato con l'pixmap specificato. Restituisce true se l'pixmap è stato inserito correttamente nella cache; altrimenti restituisce false.

L'key passato viene aggiornato in modo da fare ora riferimento a pixmap. Eventuali altre copie di key continuano a fare riferimento alla vecchia mappa di pixel, che viene tuttavia rimossa dalla cache da questa funzione.

Vedi anche setCacheLimit() e insert().

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