Inherited by: QIconEngineV2
The 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.
The PySide.QtGui.QIconEngine.paint() , PySide.QtGui.QIconEngine.pixmap() , and PySide.QtGui.QIconEngine.addPixmap() functions are all virtual, and can therefore be reimplemented in subclasses of PySide.QtGui.QIconEngine .
See also
PySide.QtGui.QIconEngineV2 QIconEnginePlugin
Parameters: |
|
---|---|
Return type: |
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|---|
Return type: |