- class Key¶
The
Key
class can be used for efficient access to theQPixmapCache
. More…Synopsis¶
Methods¶
def
__init__()
def
isValid()
def
__ne__()
def
__eq__()
def
swap()
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:
other –
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.- __ne__(key)¶
- Parameters:
key –
Key
- Return type:
bool
- __eq__(key)¶
- Parameters:
key –
Key
- Return type:
bool
- swap(other)¶
- Parameters:
other –
Key