Class: QgsGraduatedSymbolRendererWidget

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

Bases: QgsRendererWidget

Methods

actionEvent

addClass

Adds a class manually to the classification

applyChangeToSymbol

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

changeCurrentValue

param item

changeEvent

changeRange

param rangeIdx

changeRangeSymbol

param rangeIdx

changeSelectedSymbols

changeSymbolAngle

Change marker angles of selected symbols

changeSymbolColor

Change color of selected symbols

changeSymbolOpacity

Change opacity of selected symbols

changeSymbolSize

Change marker sizes of selected symbols

changeSymbolUnit

Change units mm/map units of selected symbols

changeSymbolWidth

Change line widths of selected symbols

childEvent

classifyGraduated

closeEvent

connectNotify

connectUpdateHandlers

contextMenuEvent

contextMenuViewCategories

copy

create

param layer

createDataDefinedSizeLegendWidget

Creates widget to setup data-defined size legend.

customEvent

deleteAllClasses

Removes all classes from the classification

deleteClasses

Removes currently selected classes

destroy

disconnectNotify

disconnectUpdateHandlers

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

findSymbolForRange

param lowerBound

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

graduatedColumnChanged

param field

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

param event

keyReleaseEvent

labelFormatChanged

leaveEvent

metric

modelDataChanged

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

paste

pasteSymbolToSelection

rangesClicked

param idx

rangesDoubleClicked

param idx

reapplyColorRamp

reapplySizes

receivers

refreshRanges

Refreshes the ranges for the renderer.

refreshSymbolView

renderer

rtype

QgsFeatureRenderer

resizeEvent

rowsMoved

rowsOrdered

rtype

bool

selectedClasses

Returns a list of indexes for the classes under selection

selectedRanges

rtype

List[QgsRendererRange]

selectedSymbols

rtype

List[QgsSymbol]

sender

senderSignalIndex

setContext

param context

setSymbolLevels

param levels

sharedPainter

showEvent

showSymbolLevels

tabletEvent

timerEvent

toggleBoundariesLink

Toggle the link between classes boundaries

updateMicroFocus

updateUiFromRenderer

param updateCount

wheelEvent

actionEvent(self, QActionEvent)
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(self, QEvent)
changeRange(self, rangeIdx: int)
Parameters

rangeIdx (int) –

changeRangeSymbol(self, rangeIdx: int)
Parameters

rangeIdx (int) –

changeSelectedSymbols(self)
changeSymbolAngle(self)

Change marker angles of selected symbols

changeSymbolColor(self)

Change color of selected symbols

changeSymbolOpacity(self)

Change opacity of selected symbols

changeSymbolSize(self)

Change marker sizes of selected symbols

changeSymbolUnit(self)

Change units mm/map units of selected symbols

changeSymbolWidth(self)

Change line widths of selected symbols

childEvent(self, QChildEvent)
classifyGraduated(self)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
connectUpdateHandlers(self)
contextMenuEvent(self, QContextMenuEvent)
contextMenuViewCategories(self, p: QPoint)
copy(self)
create(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer)QgsRendererWidget
Parameters
Return type

QgsRendererWidget

createDataDefinedSizeLegendWidget(self, symbol: QgsMarkerSymbol, ddsLegend: QgsDataDefinedSizeLegend)QgsDataDefinedSizeLegendWidget

Creates widget to setup data-defined size legend. Returns newly created panel - may be None if it could not be opened. Ownership is transferred to the caller.

New in version 3.0.

customEvent(self, QEvent)
deleteAllClasses(self)

Removes all classes from the classification

deleteClasses(self)

Removes currently selected classes

destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
disconnectUpdateHandlers(self)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent)bool
findSymbolForRange(self, lowerBound: float, upperBound: float, ranges: Iterable[QgsRendererRange])QgsSymbol
Parameters
  • lowerBound (float) –

  • upperBound (float) –

  • ranges (Iterable[QgsRendererRange]) –

Return type

QgsSymbol

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

field (str) –

hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod)bool
keyPressEvent(self, event: QKeyEvent)
Parameters

event (QKeyEvent) –

keyReleaseEvent(self, QKeyEvent)
labelFormatChanged(self)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric)int
modelDataChanged(self)
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr)Tuple[bool, int]
paintEvent(self, QPaintEvent)
paste(self)
pasteSymbolToSelection(self)
rangesClicked(self, idx: QModelIndex)
Parameters

idx (QModelIndex) –

rangesDoubleClicked(self, idx: QModelIndex)
Parameters

idx (QModelIndex) –

reapplyColorRamp(self)
reapplySizes(self)
receivers(self, PYQT_SIGNAL)int
refreshRanges(self, reset: bool)

Refreshes the ranges for the renderer.

The reset argument is deprecated and has no effect.

Parameters

reset (bool) –

refreshSymbolView(self)
renderer(self)QgsFeatureRenderer
Return type

QgsFeatureRenderer

resizeEvent(self, QResizeEvent)
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(self)QObject
senderSignalIndex(self)int
setContext(self, context: QgsSymbolWidgetContext)
Parameters

context (QgsSymbolWidgetContext) –

setSymbolLevels(self, levels: Iterable[QgsLegendSymbolItem], enabled: bool)
Parameters
sharedPainter(self)QPainter
showEvent(self, QShowEvent)
showSymbolLevels(self)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)

Toggle the link between classes boundaries

Parameters

linked (bool) –

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

updateCount (bool = True) –

wheelEvent(self, QWheelEvent)