Class: QgsRendererRulePropsWidget¶
- class qgis.gui.QgsRendererRulePropsWidget(rule: QgsRuleBasedRenderer.Rule, layer: QgsVectorLayer, style: QgsStyle, parent: QWidget = None, context: QgsSymbolWidgetContext = QgsSymbolWidgetContext())¶
Bases:
QgsPanelWidget
Widget to edit the details of a rule based renderer rule.
- Parameters
rule – The rule to edit.
layer – The layer used to pull layer related information.
style – The active QGIS style.
parent – The parent widget.
context –
the symbol widget context
Methods
Apply any changes from the widget to the set rule.
Open the expression builder widget to check if the
Overridden key press event to handle the esc event on the widget.
Returns the current set rule.
Set the widget in dock mode.
Test the filter that is set in the widget
- actionEvent(self, QActionEvent)¶
- apply(self)¶
Apply any changes from the widget to the set rule.
- buildExpression(self)¶
Open the expression builder widget to check if the
- 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)¶
- 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)¶
- 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)¶
- rule(self) QgsRuleBasedRenderer.Rule ¶
Returns the current set rule.
- Return type
- Returns
The current rule.
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setDockMode(self, dockMode: bool)¶
Set the widget in dock mode.
- Parameters
dockMode (bool) –
True
for dock mode.
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- testFilter(self)¶
Test the filter that is set in the widget
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶