Subgroup: other
Class: QgsCategorizedSymbolRendererWidget¶
-
class
qgis.gui.
QgsCategorizedSymbolRendererWidget
(layer: QgsVectorLayer, style: QgsStyle, renderer: QgsFeatureRenderer)¶ Bases:
qgis._gui.QgsRendererWidget
Methods
acceptDrops
acceptPanel
Accept the panel. accessibleDescription
accessibleName
actionEvent
actions
activateWindow
addAction
addActions
addCategories
addCategory
adjustSize
apply
applyChanges
This method should be called whenever the renderer is actually set on the layer. applyColorRamp
Applies the color ramp passed on by the color ramp button autoDelete
The the auto delete property on the widget. autoFillBackground
backgroundRole
baseSize
blockSignals
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
childAt
childAt(self, int, int) -> QWidget childEvent
children
childrenRect
childrenRegion
clearFocus
clearMask
close
closeEvent
colorCount
connectChildPanel
Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. connectChildPanels
Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. connectNotify
contentsMargins
contentsRect
context
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts. contextMenuEvent
contextMenuPolicy
contextMenuViewCategories
copy
create
createDataDefinedSizeLegendWidget
createWindowContainer
currentCategoryRow
return row index for the currently selected category (-1 if on no selection) cursor
customEvent
deleteAllCategories
deleteCategories
deleteLater
depth
destroy
devType
devicePixelRatio
devicePixelRatioF
devicePixelRatioFScale
disconnect
disconnectNotify
dockMode
Return the dock mode state. dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
effectiveWinId
ensurePolished
enterEvent
event
eventFilter
find
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findParentPanel
Traces through the parents of a widget to find if it is contained within a QgsPanelWidget widget. focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPolicy
focusPreviousChild
focusProxy
focusWidget
font
fontInfo
fontMetrics
foregroundRole
frameGeometry
frameSize
geometry
getContentsMargins
grab
grabGesture
grabKeyboard
grabMouse
grabMouse(self, Union[QCursor, Qt.CursorShape]) grabShortcut
graphicsEffect
graphicsProxyWidget
hasFocus
hasHeightForWidth
hasMouseTracking
hasTabletTracking
height
heightForWidth
heightMM
hide
hideEvent
inherits
initPainter
inputMethodEvent
inputMethodHints
inputMethodQuery
insertAction
insertActions
installEventFilter
isActiveWindow
isAncestorOf
isEnabled
isEnabledTo
isFullScreen
isHidden
isLeftToRight
isMaximized
isMinimized
isModal
isRightToLeft
isSignalConnected
isVisible
isVisibleTo
isWidgetType
isWindow
isWindowModified
isWindowType
keyPressEvent
keyReleaseEvent
keyboardGrabber
killTimer
layout
layoutDirection
leaveEvent
locale
logicalDpiX
logicalDpiY
lower
mapFrom
mapFromGlobal
mapFromParent
mapTo
mapToGlobal
mapToParent
mask
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. maximumHeight
maximumSize
maximumWidth
metaObject
metric
minimumHeight
minimumSize
minimumSizeHint
minimumWidth
mouseDoubleClickEvent
mouseGrabber
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
move
move(self, int, int) moveEvent
moveToThread
nativeEvent
nativeParentWidget
nextInFocusChain
normalGeometry
objectName
openPanel
Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event. overrideWindowFlags
overrideWindowState
paintEngine
paintEvent
paintingActive
palette
panelTitle
The title of the panel. parent
parentWidget
paste
physicalDpiX
physicalDpiY
populateCategories
pos
previousInFocusChain
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. raise_
receivers
rect
refreshSymbolView
releaseKeyboard
releaseMouse
releaseShortcut
removeAction
removeEventFilter
render
render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren)) renderer
repaint
repaint(self, int, int, int, int) resize
resize(self, int, int) resizeEvent
restoreGeometry
rowsMoved
saveGeometry
scroll
scroll(self, int, int, QRect) selectedCategories
return a list of indexes for the categories unders selection selectedCategoryList
selectedSymbols
sender
senderSignalIndex
setAcceptDrops
setAccessibleDescription
setAccessibleName
setAttribute
setAutoDelete
The the auto delete property on the widget. setAutoFillBackground
setBackgroundRole
setBaseSize
setBaseSize(self, QSize) setContentsMargins
setContentsMargins(self, QMargins) setContext
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts. setContextMenuPolicy
setCursor
setDisabled
setDockMode
Set the widget in dock mode which tells the widget to emit panel setEnabled
setFixedHeight
setFixedSize
setFixedSize(self, int, int) setFixedWidth
setFocus
setFocus(self, Qt.FocusReason) setFocusPolicy
setFocusProxy
setFont
setForegroundRole
setGeometry
setGeometry(self, int, int, int, int) setGraphicsEffect
setHidden
setInputMethodHints
setLayout
setLayoutDirection
setLocale
setMask
setMask(self, QRegion) setMaximumHeight
setMaximumSize
setMaximumSize(self, QSize) setMaximumWidth
setMinimumHeight
setMinimumSize
setMinimumSize(self, QSize) setMinimumWidth
setMouseTracking
setObjectName
setPalette
setPanelTitle
Set the title of the panel when shown in the interface. setParent
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType]) setProperty
setShortcutAutoRepeat
setShortcutEnabled
setSizeIncrement
setSizeIncrement(self, QSize) setSizePolicy
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy) setStatusTip
setStyle
setStyleSheet
setTabOrder
setTabletTracking
setToolTip
setToolTipDuration
setUpdatesEnabled
setVisible
setWhatsThis
setWindowFilePath
setWindowFlag
setWindowFlags
setWindowIcon
setWindowIconText
setWindowModality
setWindowModified
setWindowOpacity
setWindowRole
setWindowState
setWindowTitle
sharedPainter
show
showEvent
showFullScreen
showMaximized
showMinimized
showNormal
showSymbolLevels
showSymbolLevelsDialog
show a dialog with renderer’s symbol level settings signalsBlocked
size
sizeHint
sizeIncrement
sizePolicy
stackUnder
startTimer
statusTip
style
styleSheet
tabletEvent
testAttribute
thread
timerEvent
toolTip
toolTipDuration
tr
underMouse
ungrabGesture
unsetCursor
unsetLayoutDirection
unsetLocale
update
update(self, QRect) updateCategorizedSymbolIcon
updateGeometry
updateMicroFocus
updateUiFromRenderer
updatesEnabled
vectorLayer
Returns the vector layer associated with the widget. visibleRegion
whatsThis
wheelEvent
width
widthMM
winId
window
windowFilePath
windowFlags
windowHandle
windowIcon
windowIconText
windowModality
windowOpacity
windowRole
windowState
windowTitle
windowType
x
y
Attributes
DrawChildren
DrawWindowBackground
IgnoreMask
PdmDepth
PdmDevicePixelRatio
PdmDevicePixelRatioScaled
PdmDpiX
PdmDpiY
PdmHeight
PdmHeightMM
PdmNumColors
PdmPhysicalDpiX
PdmPhysicalDpiY
PdmWidth
PdmWidthMM
customContextMenuRequested
customContextMenuRequested(self, QPoint) [signal] destroyed
destroyed(self, QObject = None) [signal] layerVariablesChanged
Emitted when expression context variables on the associated vector layers have been changed. objectNameChanged
objectNameChanged(self, str) [signal] panelAccepted
Emitted when the panel is accepted by the user. showPanel
Emit when you require a panel to be show in the interface. staticMetaObject
widgetChanged
Emitted when the widget state changes. windowIconChanged
windowIconChanged(self, QIcon) [signal] windowIconTextChanged
windowIconTextChanged(self, str) [signal] windowTitleChanged
windowTitleChanged(self, str) [signal] -
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 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]¶ return a list of indexes for the categories unders selection
-
selectedCategoryList
(self) → object¶
-
selectedSymbols
(self) → List[QgsSymbol]¶
-
sender
()¶
-
senderSignalIndex
()¶
-
showEvent
()¶
-
showSymbolLevels
(self)¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateCategorizedSymbolIcon
(self)¶
-
updateMicroFocus
()¶
-
updateUiFromRenderer
(self)¶
-
wheelEvent
()¶
-