Class: QgsGraduatedSymbolRendererWidget

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

Bases: QgsRendererWidget

Parameters
actionEvent()
addClass(self)

Adds a class manually to the classification

applyChangeToSymbol(self)

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

changeCurrentValue(self, item: QStandardItem)
Parameters

item (QStandardItem) –

changeEvent()
changeRange(self, rangeIdx: int)
Parameters

rangeIdx (int) –

changeRangeSymbol(self, rangeIdx: int)
Parameters

rangeIdx (int) –

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

QgsRendererWidget

createDataDefinedSizeLegendWidget()
customEvent()
deleteAllClasses(self)

Removes all classes from the classification

deleteClasses(self)

Removes currently selected classes

destroy()
disconnectNotify()
disconnectUpdateHandlers(self)
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
findSymbolForRange(self, lowerBound: float, upperBound: float, ranges: Iterable[QgsRendererRange]) → QgsSymbol
Parameters
  • lowerBound (float) –

  • upperBound (float) –

  • ranges (Iterable[QgsRendererRange]) –

Return type

QgsSymbol

focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
graduatedColumnChanged(self, field: str)
Parameters

field (str) –

hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
Parameters

event (QKeyEvent) –

keyReleaseEvent()
labelFormatChanged(self)
leaveEvent()
metric()
modelDataChanged(self)
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
paste()
pasteSymbolToSelection(self)
rangesClicked(self, idx: QModelIndex)
Parameters

idx (QModelIndex) –

rangesDoubleClicked(self, idx: QModelIndex)
Parameters

idx (QModelIndex) –

reapplyColorRamp(self)
reapplySizes(self)
receivers()
refreshRanges(self, reset: bool = False)
Parameters

reset (bool = False) –

refreshSymbolView(self)
renderer(self) → QgsFeatureRenderer
Return type

QgsFeatureRenderer

resizeEvent()
rowsMoved(self)
rowsOrdered(self) → bool
Return type

bool

selectedClasses(self) → List[int]

Returns a list of indexes for the classes under selection

Return type

List[int]

selectedRanges(self) → List[QgsRendererRange]
Return type

List[QgsRendererRange]

selectedSymbols(self) → List[QgsSymbol]
Return type

List[QgsSymbol]

sender()
senderSignalIndex()
setContext(self, context: QgsSymbolWidgetContext)
Parameters

context (QgsSymbolWidgetContext) –

sharedPainter()
showEvent()
showSymbolLevels(self)
tabletEvent()
timerEvent()

Toggle the link between classes boundaries

Parameters

linked (bool) –

updateMicroFocus()
updateUiFromRenderer(self, updateCount: bool = True)
Parameters

updateCount (bool = True) –

wheelEvent()