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
Returns the selected blend mode.
Sets the selected blend mode.
Sets whether composition modes which cause clipping are shown in the combo box.
Returns
True
if composition modes which cause clipping are shown in the combo box.Populates the blend mode combo box, and sets up mapping for blend modes to combo box indexes
- actionEvent(self, QActionEvent)¶
- blendMode(self) QPainter.CompositionMode ¶
Returns the selected blend mode.
See also
- Return type:
QPainter.CompositionMode
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: PyQt5.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], PyQt5.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
- 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
toTrue
these additional composition modes will be shown in the combo box.See also
New in version 3.24.
- Parameters:
show (bool) –
- 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.
See also
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)¶