Class: QgsEditConditionalFormatRuleWidget

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

Bases: QgsPanelWidget

Constructor for QgsFieldConditionalFormatWidget, with the specified parent widget.

A widget for customizing an individual conditional formatting rule.

New in version 3.10.

Parameters

parent

actionEvent()
canceled

Emitted when a user has opted to cancel the rule modification. [signal]

changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
currentStyle(self) → QgsConditionalStyle

Returns the current style defined by the widget.

See also

loadStyle()

Return type

QgsConditionalStyle

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
loadStyle(self, style: QgsConditionalStyle)

Sets the widget to match the settings from the specified style.

See also

currentStyle()

Parameters

style (QgsConditionalStyle) –

metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
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()
senderSignalIndex()
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) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()