Obsolete Members for QPixmapCache

Los siguientes miembros de la clase QPixmapCache son obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso en código nuevo.

Miembros públicos estáticos

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

Documentación de funciones de miembros

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

Esta función está obsoleta desde la versión 6.6. Desaconsejamos su uso en código nuevo.

Utilice remove(key); key = insert(pixmap); en su lugar.

Reemplaza el mapa de píxeles asociado con el key dado por el pixmap especificado. Devuelve true si pixmap se ha insertado correctamente en la caché; en caso contrario devuelve false.

El key pasado se actualiza para hacer referencia ahora a pixmap. Otras copias de key, si las hay, siguen haciendo referencia al pixmap antiguo, que, sin embargo, es eliminado de la caché por esta función.

Véase también setCacheLimit() y 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.