Class: QgsCategorizedSymbolRendererWidget

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

Bases: QgsRendererWidget

Parameters
actionEvent()
addCategories(self)
addCategory(self)
applyChangeToSymbol(self)

Applies current symbol to selected categories, or to all categories if none is selected

applyColorRamp(self)

Applies the color ramp passed on by the color ramp button

categoriesDoubleClicked(self, idx: QModelIndex)
Parameters

idx (QModelIndex) –

categoryColumnChanged(self, field: str)
Parameters

field (str) –

changeCategorizedSymbol(self)
changeCategorySymbol(self)
changeEvent()
changeSelectedSymbols(self)

Changes the selected symbols alone for the change button, if there is a selection

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

QgsRendererWidget

createDataDefinedSizeLegendWidget()
currentCategoryRow(self) → int

Returns row index for the currently selected category (-1 if on no selection)

Return type

int

customEvent()
deleteAllCategories(self)
deleteCategories(self)
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
Parameters

event (QKeyEvent) –

keyReleaseEvent()
leaveEvent()
matchToSymbols(self, style: QgsStyle) → int

Replaces category symbols with the symbols from a style that have a matching name.

Parameters

style (QgsStyle) – style containing symbols to match with

Return type

int

Returns

number of symbols matched

New in version 2.9.

matchToSymbolsFromLibrary(self)

Replaces category symbols with the symbols from the users’ symbol library that have a matching name.

See also

matchToSymbols()

New in version 2.9.

matchToSymbolsFromXml(self)

Prompts for selection of an xml file, then replaces category symbols with the symbols from the XML file with a matching name.

See also

matchToSymbols()

New in version 2.9.

metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
paste()
populateCategories(self)
receivers()
refreshSymbolView(self)
renderer(self) → QgsFeatureRenderer
Return type

QgsFeatureRenderer

resizeEvent()
rowsMoved(self)
selectedCategories(self) → List[int]

Returns a list of indexes for the categories under selection

Return type

List[int]

selectedCategoryList(self) → object
Return type

object

selectedSymbols(self) → List[QgsSymbol]
Return type

List[QgsSymbol]

sender()
senderSignalIndex()
sharedPainter()
showEvent()
showSymbolLevels(self)
tabletEvent()
timerEvent()
updateCategorizedSymbolIcon(self)
updateMicroFocus()
updateUiFromRenderer(self)
wheelEvent()