继承者: QIconEngineV2
PySide.QtGui.QIconEngine class provides an abstract base class for PySide.QtGui.QIcon renderers.
Use :class:`PySide.QtGui.QIconEngineV2` **instead.
An icon engine provides the rendering functions for a PySide.QtGui.QIcon . Each icon has a corresponding icon engine that is responsible for drawing the icon with a requested size, mode and state.
The icon is rendered by the PySide.QtGui.QIconEngine.paint() function, and the icon can additionally be obtained as a pixmap with the PySide.QtGui.QIconEngine.pixmap() function (the default implementation simply uses PySide.QtGui.QIconEngine.paint() to achieve this). The PySide.QtGui.QIconEngine.addPixmap() function can be used to add new pixmaps to the icon engine, and is used by PySide.QtGui.QIcon to add specialized custom pixmaps.
PySide.QtGui.QIconEngine.paint() , PySide.QtGui.QIconEngine.pixmap() ,和 PySide.QtGui.QIconEngine.addPixmap() functions are all virtual, and can therefore be reimplemented in subclasses of PySide.QtGui.QIconEngine .
另请参阅
PySide.QtGui.QIconEngineV2 QIconEnginePlugin
| 参数: |
|
|---|---|
| 返回类型: |
| 参数: |
|
|---|
| 参数: |
|
|---|
| 参数: |
|
|---|
| 参数: |
|
|---|---|
| 返回类型: |