The following members of class QPixmapCache are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated in 6.6) bool |
replace(const QPixmapCache::Key &key, const QPixmap &pixmap) |
[static, deprecated in 6.6] bool QPixmapCache::replace(const QPixmapCache::Key &key, const QPixmap &pixmap)This function is deprecated since 6.6. We strongly advise against using it in new code.
Use remove(key); key = insert(pixmap); instead.
Replaces the pixmap associated with the given key with the pixmap specified. Returns true if the pixmap has been correctly inserted
into the cache; otherwise returns false.
The passed key is updated to reference pixmap now. Other copies of key, if any, still refer to the old pixmap, which is, however, removed from the cache by this function.
See also setCacheLimit() and insert().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: