Skip to content

PixmapCache

Base classes

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

⋔ Inheritance diagram

graph TD
  1050775800["gui.PixmapCache"]
  3387543429["QtGui.QPixmapCache"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3387543429 --> 1050775800
  37984305 --> 3387543429
  2751680898 --> 37984305

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

:fa-brands-github: Show source on GitHub