Class: QgsEditConditionalFormatRuleWidget¶
- class qgis.gui.QgsEditConditionalFormatRuleWidget(parent: QWidget = None)¶
Bases:
QgsPanelWidget
Constructor for
QgsFieldConditionalFormatWidget
, with the specifiedparent
widget.A widget for customizing an individual conditional formatting rule.
Methods
Returns the current style defined by the widget.
Overridden key press event to handle the esc event on the widget.
Sets the widget to match the settings from the specified
style
.Sets the vector
layer
associated with the widget.Sets the preset
styles
that can be used for quick pick.Sets the current expression
rule
to show in the widget.Signals
Emitted when a user has opted to cancel the rule modification.
Emitted when a user has opted to deleted the current rule.
Emitted when a user has opted to save the current rule.
- actionEvent(self, QActionEvent)¶
- canceled¶
Emitted when a user has opted to cancel the rule modification. [signal]
- 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)¶
- currentStyle(self) → QgsConditionalStyle¶
Returns the current style defined by the widget.
See also
- Return type
- 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)¶
- event(self, QEvent) → bool¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) → bool¶
- focusNextPrevChild(self, bool) → bool¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) → bool¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) → bool¶
- keyPressEvent(self, event: QKeyEvent)¶
Overridden key press event to handle the esc event on the widget.
- Parameters
event – The key event
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- loadStyle(self, style: QgsConditionalStyle)¶
Sets the widget to match the settings from the specified
style
.See also
- Parameters
style (QgsConditionalStyle) –
- 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)¶
- ruleDeleted¶
Emitted when a user has opted to deleted the current rule. [signal]
- ruleSaved¶
Emitted when a user has opted to save the current rule. [signal]
- sender(self) → QObject¶
- senderSignalIndex(self) → int¶
- setLayer(self, layer: QgsVectorLayer)¶
Sets the vector
layer
associated with the widget.- Parameters
layer (QgsVectorLayer) –
- setPresets(self, styles: Iterable[QgsConditionalStyle])¶
Sets the preset
styles
that can be used for quick pick.- Parameters
styles (Iterable[QgsConditionalStyle]) –
- setRule(self, rule: str)¶
Sets the current expression
rule
to show in the widget.- Parameters
rule (str) –
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶