Obsolete Members for QPixmapCache

クラスQPixmapCache の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

静的パブリック・メンバー

(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)

この関数は6.6から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

代わりにremove(key); key = insert(pixmap); を使ってください。

与えられたkey に関連付けられた pixmap を、指定されたpixmap で置き換えます。pixmap がキャッシュに正しく挿入されていればtrue を返し、そうでなければfalse を返します。

渡されたkeypixmap を参照するように更新されます。渡されたkey は、現在の を参照するように更新される。 の他のコピーがある場合は、古い pixmap を参照したままであるが、 この関数によってキャッシュから削除される。

setCacheLimit() および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.