Skip to content

PixmapCache

Qt Base Class: QPixmapCache

Signature: QPixmapCache(self) -> None

Base classes

Name Children Inherits
QPixmapCache
PySide6.QtGui
QPixmapCache(self) -> None

⋔ Inheritance diagram

graph TD
  1473245535792["gui.PixmapCache"]
  1473300042352["QtGui.QPixmapCache"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473300042352 --> 1473245535792
  1473291690208 --> 1473300042352
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPixmapCache

Application-wide cache for pixmaps.

Source code in prettyqt\gui\pixmapcache.py
class PixmapCache(QtGui.QPixmapCache):
    """Application-wide cache for pixmaps."""

    def __setitem__(self, key: str, value: QtGui.QPixmap):
        self.insert(key, value)

    def __getitem__(self, key: str) -> QtGui.QPixmap | None:
        return self.find(key)

    def __delitem__(self, key: str):
        self.remove(key)