Class: QgsRuleBasedRendererWidget

class qgis.gui.QgsRuleBasedRendererWidget(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer)

Bases: QgsRendererWidget

Methods

actionEvent

addRule

changeEvent

changeSymbolAngle

Change marker angles of selected symbols

changeSymbolColor

Change color of selected symbols

changeSymbolOpacity

Change opacity of selected symbols

changeSymbolSize

Change marker sizes of selected symbols

changeSymbolUnit

Change units mm/map units of selected symbols

changeSymbolWidth

Change line widths of selected symbols

childEvent

clearFeatureCounts

closeEvent

connectNotify

contextMenuEvent

contextMenuViewCategories

copy

countFeatures

create

param layer

currentRule

rtype

QgsRuleBasedRenderer.Rule

currentRuleChanged

param current

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

editRule

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

param event

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

paste

pasteSymbolToSelection

receivers

refineRule

param type

refineRuleCategories

refineRuleCategoriesGui

Opens the dialog for refining a rule using categories

refineRuleRanges

refineRuleRangesGui

Opens the dialog for refining a rule using ranges

refineRuleScales

refineRuleScalesGui

param index

refreshSymbolView

removeRule

renderer

rtype

QgsFeatureRenderer

resizeEvent

restoreSectionWidths

saveSectionWidth

param section

selectedRules

rtype

List[QgsRuleBasedRenderer.Rule]

selectedRulesChanged

selectedSymbols

rtype

List[QgsSymbol]

sender

senderSignalIndex

setDockMode

param dockMode

setRenderingOrder

setSymbolLevels

param levels

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

actionEvent(self, QActionEvent)
addRule(self)
changeEvent(self, QEvent)
changeSymbolAngle(self)

Change marker angles of selected symbols

changeSymbolColor(self)

Change color of selected symbols

changeSymbolOpacity(self)

Change opacity of selected symbols

changeSymbolSize(self)

Change marker sizes of selected symbols

changeSymbolUnit(self)

Change units mm/map units of selected symbols

changeSymbolWidth(self)

Change line widths of selected symbols

childEvent(self, QChildEvent)
clearFeatureCounts(self)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
contextMenuViewCategories(self, p: QPoint)
copy(self)
countFeatures(self)
create(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer) QgsRendererWidget
Parameters
Return type

QgsRendererWidget

currentRule(self) QgsRuleBasedRenderer.Rule
Return type

QgsRuleBasedRenderer.Rule

currentRuleChanged(self, current: QModelIndex = QModelIndex(), previous: QModelIndex = QModelIndex())
Parameters
  • current (QModelIndex = QModelIndex()) –

  • previous (QModelIndex = QModelIndex()) –

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)
editRule(self)
editRule(self, index: QModelIndex) None
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)
Parameters

event (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], sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
paste(self)
pasteSymbolToSelection(self)
receivers(self, PYQT_SIGNAL) int
refineRule(self, type: int)
Parameters

type (int) –

refineRuleCategories(self)
refineRuleCategoriesGui(self)

Opens the dialog for refining a rule using categories

refineRuleRanges(self)
refineRuleRangesGui(self)

Opens the dialog for refining a rule using ranges

refineRuleScales(self)
refineRuleScalesGui(self, index: Iterable[QModelIndex])
Parameters

index (Iterable[QModelIndex]) –

refreshSymbolView(self)
removeRule(self)
renderer(self) QgsFeatureRenderer
Return type

QgsFeatureRenderer

resizeEvent(self, QResizeEvent)
restoreSectionWidths(self)
saveSectionWidth(self, section: int, oldSize: int, newSize: int)
Parameters
  • section (int) –

  • oldSize (int) –

  • newSize (int) –

selectedRules(self) List[QgsRuleBasedRenderer.Rule]
Return type

List[QgsRuleBasedRenderer.Rule]

selectedRulesChanged(self)
selectedSymbols(self) List[QgsSymbol]
Return type

List[QgsSymbol]

sender(self) QObject
senderSignalIndex(self) int
setDockMode(self, dockMode: bool)
Parameters

dockMode (bool) –

setRenderingOrder(self)
setSymbolLevels(self, levels: Iterable[QgsLegendSymbolItem], enabled: bool)
Parameters
sharedPainter(self) QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)