Obsolete Members for QPixmapCache

Die folgenden Mitglieder der Klasse „ QPixmapCache “ sind veraltet. Sie werden bereitgestellt, damit alter Quellcode weiterhin funktioniert. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Statische öffentliche Mitglieder

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

Dokumentation zu Mitgliedsfunktionen

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

Diese Funktion ist seit Version 6.6 veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Verwenden Sie stattdessen „ remove(key); key = insert(pixmap); “.

Ersetzt die mit dem angegebenen ` key ` verknüpfte Pixmap durch die angegebene ` pixmap `. Gibt ` true ` zurück, wenn die ` pixmap ` korrekt in den Cache eingefügt wurde; andernfalls wird ` false` zurückgegeben.

Das übergebene ` key ` wird aktualisiert und verweist nun auf ` pixmap `. Etwaige andere Kopien von ` key` verweisen weiterhin auf die alte Pixmap, die jedoch durch diese Funktion aus dem Cache entfernt wird.

Siehe auch ` setCacheLimit()` und ` 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.