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()도 참조하세요 .
© 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.