Class: QgsPixmapLabel

class qgis.gui.QgsPixmapLabel(parent: QWidget = None)

Bases: PyQt5.QtWidgets.QLabel

Constructor for QgsPixmapLabel

The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given to the widget by the layout and keeping its aspect ratio.

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
drawFrame()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
heightForWidth(self, width: int) → int

Calculates the height for the given width.

Parameters:width – The width for the widget
Returns:An appropriate height
hideEvent()
initPainter()
initStyleOption()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent(self, QResizeEvent)
sender()
senderSignalIndex()
setPixmap(self, QPixmap)
sharedPainter()
showEvent()
sizeHint(self) → QSize

An optimal size for the widget. Effectively using the height determined from the width with the given aspect ratio.

Returns:A size hint
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()