Obsolete Members for QPixmapCache

Die folgenden Mitglieder der Klasse QPixmapCache sind veraltet. Sie werden bereitgestellt, um alten Quellcode funktionsfähig zu halten. 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 der Mitgliedsfunktionen

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

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

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

Ersetzt die Pixmap, die mit der angegebenen key verknüpft ist, durch die angegebene pixmap. Gibt true zurück, wenn die pixmap korrekt in den Cache eingefügt wurde; andernfalls false.

Die übergebene key wird aktualisiert und verweist nun auf pixmap. Andere Kopien von key verweisen, falls vorhanden, weiterhin auf die alte Pixmap, die jedoch durch diese Funktion aus dem Cache entfernt wird.

Siehe auch setCacheLimit() und insert().

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