Obsolete Members for QPixmapCache
Os seguintes membros da classe ` QPixmapCache ` estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.
Membros públicos estáticos
(deprecated in 6.6) bool | replace(const QPixmapCache::Key &key, const QPixmap &pixmap) |
Documentação das funções-membro
[static, deprecated in 6.6] bool QPixmapCache::replace(const QPixmapCache::Key &key, const QPixmap &pixmap)
Essa função está obsoleta desde a versão 6.6. Recomendamos enfaticamente que não seja utilizada em código novo.
Use ` remove(key); key = insert(pixmap); ` em vez disso.
Substitui o pixmap associado ao ` key ` fornecido pelo ` pixmap ` especificado. Retorna ` true ` se o ` pixmap ` tiver sido inserido corretamente no cache; caso contrário, retorna ` false`.
O objeto ` key ` passado é atualizado para referenciar agora ` pixmap `. Outras cópias de ` key`, se houver, ainda se referem ao pixmap antigo, que, no entanto, é removido do cache por esta função.
Veja também 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.