QIcon Class Reference
[QtGui module]
Types
- enum Mode { Normal, Disabled, Active, Selected }
- enum State { On, Off }
Methods
- __init__ (self)
- __init__ (self, QPixmap)
- __init__ (self, QIcon)
- __init__ (self, QString)
- __init__ (self, QIconEngine)
- __init__ (self, QIconEngineV2)
- __init__ (self, QVariant variant)
- QSize actualSize (self, QSize, Mode mode = QIcon.Normal, State state = QIcon.Off)
- addFile (self, QString, QSize size = QSize(), Mode mode = QIcon.Normal, State state = QIcon.Off)
- addPixmap (self, QPixmap, Mode mode = QIcon.Normal, State state = QIcon.Off)
- list-of-QSize availableSizes (self, Mode mode = QIcon.Normal, State state = QIcon.Off)
- int cacheKey (self)
- bool isDetached (self)
- bool isNull (self)
- QString name (self)
- paint (self, QPainter, QRect, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
- paint (self, QPainter, int, int, int, int, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
- QPixmap pixmap (self, QSize, Mode mode = QIcon.Normal, State state = QIcon.Off)
- QPixmap pixmap (self, int, int, Mode mode = QIcon.Normal, State state = QIcon.Off)
- QPixmap pixmap (self, int, Mode mode = QIcon.Normal, State state = QIcon.Off)
- int serialNumber (self)
Static Methods
Detailed Description
Type Documentation
QIcon.Mode
QIcon.State
Method Documentation
QIcon.__init__ (self)
QIcon.__init__ (self, QPixmap)
QIcon.__init__ (self, QIcon)
QIcon.__init__ (self, QString)
QIcon.__init__ (self, QIconEngine)
The QIconEngine argument has it's ownership transferred to Qt.
The QIconEngineV2 argument has it's ownership transferred to Qt.
QIcon.__init__ (self, QVariant variant)
QSize QIcon.actualSize (self, QSize, Mode mode = QIcon.Normal, State state = QIcon.Off)
QIcon.addFile (self, QString, QSize size = QSize(), Mode mode = QIcon.Normal, State state = QIcon.Off)
QIcon.addPixmap (self, QPixmap, Mode mode = QIcon.Normal, State state = QIcon.Off)
list-of-QSize QIcon.availableSizes (self, Mode mode = QIcon.Normal, State state = QIcon.Off)
int QIcon.cacheKey (self)
QIcon QIcon.fromTheme (QString, QIcon fallback = QIcon())
bool QIcon.hasThemeIcon (QString)
bool QIcon.isDetached (self)
bool QIcon.isNull (self)
QString QIcon.name (self)
QIcon.paint (self, QPainter, QRect, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
QIcon.paint (self, QPainter, int, int, int, int, Qt.Alignment alignment = Qt.AlignCenter, Mode mode = QIcon.Normal, State state = QIcon.Off)
QPixmap QIcon.pixmap (self, QSize, Mode mode = QIcon.Normal, State state = QIcon.Off)
QPixmap QIcon.pixmap (self, int, int, Mode mode = QIcon.Normal, State state = QIcon.Off)
QPixmap QIcon.pixmap (self, int, Mode mode = QIcon.Normal, State state = QIcon.Off)
int QIcon.serialNumber (self)
QIcon.setThemeName (QString)
QIcon.setThemeSearchPaths (QStringList)
QString QIcon.themeName ()
QStringList QIcon.themeSearchPaths ()