Subgroup: Field
Class: QgsFieldConditionalFormatWidget¶
-
class
qgis.gui.
QgsFieldConditionalFormatWidget
(parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsFieldConditionalFormatWidget.
Parameters: parent – parent widget A widget for customizing conditional formatting options.
New in version 2.12: Methods
Signals
rulesUpdated
Emitted when the conditional styling rules are updated. Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
defaultPresets
(self) → List[QgsConditionalStyle]¶ The default presets for the widget. Normally set when the widget is created however called setPresets will override the default styles.
Returns: List of default presets.
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
editStyle
(self, index: int, style: QgsConditionalStyle)¶ Switches the widget to the edit style mode for the specified style.
Parameters: - index – index of conditional style to edit
- style – initial conditional styling options
-
enterEvent
()¶
-
event
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
loadStyle
(self, style: QgsConditionalStyle)¶ Parameters: style – initial conditional styling options
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
reset
(self)¶ Resets the formatting options to their default state.
-
resizeEvent
()¶
-
rulesUpdated
¶ Emitted when the conditional styling rules are updated.
Parameters: fieldName – name of field whose rules have been modified. [signal]
-
sender
()¶
-
senderSignalIndex
()¶
-
setLayer
(self, layer: QgsVectorLayer)¶ Sets the vector layer associated with the widget.
Parameters: layer – vector layer
-
setPresets
(self, styles: Iterable[QgsConditionalStyle])¶ Set the presets that can be used for quick pick
Parameters: styles – A list of styles used as presets
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
viewRules
(self)¶ Switches the widget to the rules page.
-
wheelEvent
()¶
-