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 ` がキャッシュに正しく挿入された場合は `true ` を返し、そうでない場合は `false` を返します。
渡されたkey は、pixmap を参照するように更新されます。key の他のコピー(存在する場合)は、引き続き古いピクマップを参照しますが、そのピクマップは本関数によってキャッシュから削除されます。
setCacheLimit() および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.