Subgroup: other

Class: QgsCategorizedSymbolRendererWidget

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

Bases: qgis._gui.QgsRendererWidget

Methods

actionEvent
addCategories
addCategory
applyColorRamp Applies the color ramp passed on by the color ramp button
categoriesDoubleClicked
categoryColumnChanged
changeCategorizedSymbol
changeCategorySymbol
changeEvent
changeSelectedSymbols change 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 return 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
populateCategories
receivers
refreshSymbolView
renderer
resizeEvent
rowsMoved
selectedCategories return a list of indexes for the categories unders selection
selectedCategoryList
selectedSymbols
sender
senderSignalIndex
sharedPainter
showEvent
showSymbolLevels
tabletEvent
timerEvent
updateCategorizedSymbolIcon
updateMicroFocus
updateUiFromRenderer
wheelEvent

Signals

Attributes

actionEvent()
addCategories(self)
addCategory(self)
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)

change 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

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

return a list of indexes for the categories unders selection

selectedCategoryList(self) → object
selectedSymbols(self) → List[QgsSymbol]
sender()
senderSignalIndex()
sharedPainter()
showEvent()
showSymbolLevels(self)
tabletEvent()
timerEvent()
updateCategorizedSymbolIcon(self)
updateMicroFocus()
updateUiFromRenderer(self)
wheelEvent()