Class: QgsBlendModeComboBox

class qgis.gui.QgsBlendModeComboBox

Bases: PyQt5.QtWidgets.QComboBox

A combobox which lets the user select blend modes from a predefined list

QgsBlendModeComboBox(parent: QWidget = None) Constructor for QgsBlendModeComboBox

Methods

actionEvent

blendMode

Returns the selected blend mode.

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

initStyleOption

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

resizeEvent

sender

senderSignalIndex

setBlendMode

Sets the selected blend mode.

setShowClippingModes

Sets whether composition modes which cause clipping are shown in the combo box.

sharedPainter

showClippingModes

Returns True if composition modes which cause clipping are shown in the combo box.

showEvent

tabletEvent

timerEvent

updateMicroFocus

updateModes

Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes

wheelEvent

actionEvent(self, QActionEvent)
blendMode(self) QPainter.CompositionMode

Returns the selected blend mode.

See also

setBlendMode()

Return type

QPainter.CompositionMode

changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
focusInEvent(self, QFocusEvent)
focusNextChild(self) bool
focusNextPrevChild(self, bool) bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionComboBox)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric) int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) int
resizeEvent(self, QResizeEvent)
sender(self) QObject
senderSignalIndex(self) int
setBlendMode(self, blendMode: QPainter.CompositionMode)

Sets the selected blend mode.

See also

blendMode()

Parameters

blendMode (QPainter.CompositionMode) –

setShowClippingModes(self, show: bool)

Sets whether composition modes which cause clipping are shown in the combo box.

By default, these composition modes (such as QPainter.CompositionMode.CompositionMode_DestinationIn ) are not shown in the combo box, as they can only be used with predictable results in a limited set of circumstances. By setting show to True these additional composition modes will be shown in the combo box.

New in version 3.24.

Parameters

show (bool) –

sharedPainter(self) QPainter
showClippingModes(self) bool

Returns True if composition modes which cause clipping are shown in the combo box.

By default, these composition modes (such as QPainter.CompositionMode.CompositionMode_DestinationIn ) are not shown in the combo box, as they can only be used with predictable results in a limited set of circumstances.

New in version 3.24.

Return type

bool

showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
updateModes(self)

Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes

wheelEvent(self, QWheelEvent)