Key

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

Synopsis

Functions

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.

class PySide2.QtGui.Key

PySide2.QtGui.Key(other)

param other

PySide2.QtGui.Key

Constructs an empty Key object.

PySide2.QtGui.Key.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.

PySide2.QtGui.Key.__ne__(key)
Parameters

keyPySide2.QtGui.Key

Return type

bool

PySide2.QtGui.Key.__eq__(key)
Parameters

keyPySide2.QtGui.Key

Return type

bool

Returns true if this key is the same as the given key ; otherwise returns false.

PySide2.QtGui.Key.swap(other)
Parameters

otherPySide2.QtGui.Key