Class: QgsCategorizedSymbolRendererWidget¶
-
class
qgis.gui.
QgsCategorizedSymbolRendererWidget
(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer)¶ Bases:
qgis._gui.QgsRendererWidget
Enums
Methods
Applies current symbol to selected categories, or to all categories if none is selected
Applies the color ramp passed on by the color ramp button
Changes the selected symbols alone for the change button, if there is a selection
Returns row index for the currently selected category (-1 if on no selection)
Replaces category symbols with the symbols from a style that have a matching name.
Replaces category symbols with the symbols from the users’ symbol library that have a matching name.
Prompts for selection of an xml file, then replaces category symbols with the symbols from the XML file with a matching name.
Returns a list of indexes for the categories under selection
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
See also
See also
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
See also
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
See also
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]¶ Returns a list of indexes for the categories under selection
-
selectedCategoryList
(self) → List[QgsRendererCategory]¶
-
selectedSymbols
(self) → List[QgsSymbol]¶
-
sender
()¶
-
senderSignalIndex
()¶
-
showEvent
()¶
-
showSymbolLevels
(self)¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateCategorizedSymbolIcon
(self)¶
-
updateMicroFocus
()¶
-
updateUiFromRenderer
(self)¶
-
wheelEvent
()¶
-