Key类可用于有效访问QPixmapCache. 更多 …
使用
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.
PySide2.QtGui.QPixmapCache.
Key
¶
PySide2.QtGui.QPixmapCache.Key(other)
- param other
Key
构造空的 Key 对象。
PySide2.QtGui.QPixmapCache.Key.
isValid
(
)
¶
bool
返回
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
)
¶
key
–
Key
bool
PySide2.QtGui.QPixmapCache.Key.
__eq__
(
key
)
¶
key
–
Key
bool
返回
true
if this key is the same as the given
key
;否则返回 false。
PySide2.QtGui.QPixmapCache.Key.
swap
(
other
)
¶
other
–
Key