PySide6.QtGui.QPixmapCache.Key

class Key

The Key class can be used for efficient access to the QPixmapCache . More

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Use insert() to receive an instance of Key generated by the pixmap cache. You can store the key in your own objects for a very efficient one-to-one object-to-pixmap mapping.

__init__()

Constructs an empty Key object.

__init__(other)
Parameters:

otherKey

isValid()
Return type:

bool

Returns true if there is a cached pixmap associated with this key. Otherwise, if pixmap was flushed, the key is no longer valid.

__ne__(key)
Parameters:

keyKey

Return type:

bool

__eq__(key)
Parameters:

keyKey

Return type:

bool

swap(other)
Parameters:

otherKey