Class: QgsCategorizedSymbolRendererWidget

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

Bases: qgis._gui.QgsRendererWidget

Enums

Methods

actionEvent

addCategories

addCategory

applyChangeToSymbol

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

applyColorRamp

Applies the color ramp passed on by the color ramp button

categoriesDoubleClicked

categoryColumnChanged

changeCategorizedSymbol

changeCategorySymbol

changeEvent

changeSelectedSymbols

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

createDataDefinedSizeLegendWidget

currentCategoryRow

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

customEvent

deleteAllCategories

deleteCategories

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

matchToSymbols

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

matchToSymbolsFromLibrary

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

matchToSymbolsFromXml

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

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

paste

pasteSymbolToSelection

populateCategories

receivers

refreshSymbolView

renderer

resizeEvent

rowsMoved

selectedCategories

Returns a list of indexes for the categories under selection

selectedCategoryList

selectedSymbols

sender

senderSignalIndex

setContext

sharedPainter

showEvent

showSymbolLevels

tabletEvent

timerEvent

updateMicroFocus

updateUiFromRenderer

wheelEvent

Signals

Attributes

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)
categoryColumnChanged(self, 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
createDataDefinedSizeLegendWidget()
currentCategoryRow(self) → int

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

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)
keyReleaseEvent()
leaveEvent()
matchToSymbols(self, style: QgsStyle) → int

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

Parameters

style – style containing symbols to match with

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()
pasteSymbolToSelection(self)
populateCategories(self)
receivers()
refreshSymbolView(self)
renderer(self) → QgsFeatureRenderer
resizeEvent()
rowsMoved(self)
selectedCategories(self) → List[int]

Returns a list of indexes for the categories under selection

selectedCategoryList(self) → List[QgsRendererCategory]
selectedSymbols(self) → List[QgsSymbol]
sender()
senderSignalIndex()
setContext(self, context: QgsSymbolWidgetContext)
sharedPainter()
showEvent()
showSymbolLevels(self)
tabletEvent()
timerEvent()
updateMicroFocus()
updateUiFromRenderer(self)
wheelEvent()