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.