Class: QgsRuleBasedRendererWidget

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

Bases: QgsRendererWidget

Parameters
actionEvent()
addRule(self)
changeEvent()
changeSymbolAngle()
changeSymbolColor()
changeSymbolOpacity()
changeSymbolSize()
changeSymbolUnit()
changeSymbolWidth()
childEvent()
clearFeatureCounts(self)
closeEvent()
connectNotify()
contextMenuEvent()
contextMenuViewCategories()
copy(self)
countFeatures(self)
create(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer) → QgsRendererWidget
Parameters
Return type

QgsRendererWidget

createDataDefinedSizeLegendWidget()
currentRule(self) → QgsRuleBasedRenderer.Rule
Return type

QgsRuleBasedRenderer.Rule

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

  • previous (QModelIndex = QModelIndex()) –

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
editRule(self)

editRule(self, index: QModelIndex)

enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
Parameters

event (QKeyEvent) –

keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
paste(self)
pasteSymbolToSelection(self)
receivers()
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()
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()
senderSignalIndex()
setRenderingOrder(self)
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()