Bases: PyQt4.QtGui.QWidget
This widget displays an image (pixmap). By default the pixmap is scaled to the widget size and the aspect ratio is kept. The default alignment of the pixmap inside the widget space is horizontal left, vertical center.
This property holds the widget’s pixmap alignment
Access functions:
This property holds the widget’s pixmap aspect ratio mode
Access functions:
Returns the alignment to apply when drawing the pixmap. :return: the current alignment :rtype: PyQt4.Qt.Alignment
Returns the aspect ratio to apply when drawing the pixmap. :return: the current aspect ratio :rtype: PyQt4.Qt.AspectRatioMode
Returns the pixmap.Returns None if no pixmap is set. :return: the current pixmap :rtype: PyQt4.Qt.QPixmap
Returns the transformation mode to apply when drawing the pixmap. :return: the current transformation mode :rtype: PyQt4.Qt.TransformationMode
Overwrite the paintEvent from QWidget to draw the pixmap
This property holds the widget’s pixmap
Access functions:
- QPixmapWidget.getPixmap()
- QPixmapWidget.setPixmap()
- QPixmapWidget.resetLedStatus()
Resets the transformation mode to Qt.Qt.AlignLeft | Qt.Qt.AlignVCenter
Resets the aspect ratio mode to KeepAspectRatio
Resets the pixmap for this widget.
Resets the transformation mode to SmoothTransformation
Sets the alignment to apply when drawing the pixmap. :param pixmap: the new alignment :type pixmap: PyQt4.Qt.Alignment
Sets the aspect ratio mode to apply when drawing the pixmap. :param pixmap: the new aspect ratio mode :type pixmap: PyQt4.Qt.AspectRatioMode
Sets the pixmap for this widget. Setting it to None disables pixmap :param pixmap: the new pixmap :type pixmap: PyQt4.Qt.QPixmap
Sets the transformation mode to apply when drawing the pixmap. :param pixmap: the new transformation mode :type pixmap: PyQt4.Qt.TransformationMode
This property holds the widget’s pixmap transformation mode
Access functions: