Key¶
The
Key
class can be used for efficient access to theQPixmapCache
. 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.QPixmapCache.Key¶
PySide2.QtGui.QPixmapCache.Key(other)
- param other:
Constructs an empty Key object.
- PySide2.QtGui.QPixmapCache.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.QPixmapCache.Key.__ne__(key)¶
- Parameters:
- Return type:
bool
- PySide2.QtGui.QPixmapCache.Key.__eq__(key)¶
- Parameters:
- Return type:
bool
Returns
true
if this key is the same as the givenkey
; otherwise returns false.
- PySide2.QtGui.QPixmapCache.Key.swap(other)¶
- Parameters:
other –
PySide2.QtGui.QPixmapCache.Key
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.