Class: QgsCategorizedSymbolRendererWidget¶
-
class
qgis.gui.
QgsCategorizedSymbolRendererWidget
(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer)¶ Bases:
QgsRendererWidget
- Parameters
layer (QgsVectorLayer) –
style (QgsStyle) –
renderer –
-
actionEvent
(self, QActionEvent)¶
-
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)¶ - Parameters
idx (QModelIndex) –
-
categoryColumnChanged
(self, field: str)¶ - Parameters
field (str) –
-
changeCategorizedSymbol
(self)¶
-
changeCategorySymbol
(self)¶
-
changeEvent
(self, QEvent)¶
-
changeSelectedSymbols
(self)¶ Changes the selected symbols alone for the change button, if there is a selection
-
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)¶
-
closeEvent
(self, QCloseEvent)¶
-
connectNotify
(self, QMetaMethod)¶
-
contextMenuEvent
(self, QContextMenuEvent)¶
-
contextMenuViewCategories
(self, p: QPoint)¶
-
copy
(self)¶
-
create
(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer) → QgsRendererWidget¶ - Parameters
layer (QgsVectorLayer) –
style (QgsStyle) –
renderer (QgsFeatureRenderer) –
- Return type
-
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.
-
currentCategoryRow
(self) → int¶ Returns row index for the currently selected category (-1 if on no selection)
- Return type
int
-
customEvent
(self, QEvent)¶
-
deleteAllCategories
(self)¶
-
deleteCategories
(self)¶
-
destroy
(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
dragEnterEvent
(self, QDragEnterEvent)¶
-
dragLeaveEvent
(self, QDragLeaveEvent)¶
-
dragMoveEvent
(self, QDragMoveEvent)¶
-
dropEvent
(self, QDropEvent)¶
-
enterEvent
(self, QEvent)¶
-
event
(self, QEvent) → bool¶
-
focusInEvent
(self, QFocusEvent)¶
-
focusNextChild
(self) → bool¶
-
focusNextPrevChild
(self, bool) → bool¶
-
focusOutEvent
(self, QFocusEvent)¶
-
focusPreviousChild
(self) → bool¶
-
hideEvent
(self, QHideEvent)¶
-
initPainter
(self, QPainter)¶
-
inputMethodEvent
(self, QInputMethodEvent)¶
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
keyPressEvent
(self, event: QKeyEvent)¶ - Parameters
event (QKeyEvent) –
-
keyReleaseEvent
(self, QKeyEvent)¶
-
leaveEvent
(self, QEvent)¶
-
matchToSymbols
(self, style: QgsStyle) → int¶ Replaces category symbols with the symbols from a style that have a matching name.
- Parameters
style (QgsStyle) – style containing symbols to match with
- Return type
int
- 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
(self, QPaintDevice.PaintDeviceMetric) → int¶
-
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)¶
-
populateCategories
(self)¶
-
receivers
(self, PYQT_SIGNAL) → int¶
-
refreshSymbolView
(self)¶
-
renderer
(self) → QgsFeatureRenderer¶ - Return type
-
resizeEvent
(self, QResizeEvent)¶
-
rowsMoved
(self)¶
-
selectedCategories
(self) → List[int]¶ Returns a list of indexes for the categories under selection
- Return type
List[int]
-
selectedCategoryList
(self) → List[QgsRendererCategory]¶ - Return type
List[QgsRendererCategory]
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
setContext
(self, context: QgsSymbolWidgetContext)¶ - Parameters
context (QgsSymbolWidgetContext) –
-
showEvent
(self, QShowEvent)¶
-
showSymbolLevels
(self)¶
-
tabletEvent
(self, QTabletEvent)¶
-
timerEvent
(self, QTimerEvent)¶
-
updateMicroFocus
(self)¶
-
updateUiFromRenderer
(self)¶
-
wheelEvent
(self, QWheelEvent)¶