内容表

上一话题

QTextLayout.FormatRange

下一话题

QPagedPaintDevice.Margins

QPixmapCache.Key

Key 类可用于有效访问 QPixmapCache . 更多

Inheritance diagram of PySide2.QtGui.QPixmapCache.Key

概要

函数

详细描述

使用 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

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