Class: QgsSymbolsListWidget¶
-
class
qgis.gui.
QgsSymbolsListWidget
(symbol: QgsSymbol, style: QgsStyle, menu: QMenu, parent: QWidget, layer: QgsVectorLayer = None)¶ Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsSymbolsListWidget.
- Parameters
symbol (QgsSymbol) – the symbol
style (QgsStyle) – the style
menu (QMenu) – the menu where to show it
parent (QWidget) – parent widget
layer (
QgsVectorLayer
= None) –associated vector layer
Methods
- param checked
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Returns the vector layer associated with the widget.
Pupulates the groups combo box with available tags and smartgroups
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- param width
- param angle
- param size
- param color
- param index
Signals
changed(self) [signal]
-
actionEvent
()¶
-
addSymbolToStyle
(self)¶
-
changeEvent
()¶
-
changed
¶ changed(self) [signal]
-
childEvent
()¶
-
clipFeaturesToggled
(self, checked: bool)¶ - Parameters
checked (bool) –
-
closeEvent
()¶
-
connectNotify
()¶
-
context
(self) → QgsSymbolWidgetContext¶ Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
See also
New in version 3.0.
- Return type
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
layer
(self) → QgsVectorLayer¶ Returns the vector layer associated with the widget.
New in version 2.12.
- Return type
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
openStyleManager
(self)¶
-
paintEvent
()¶
-
populateGroups
(self)¶ Pupulates the groups combo box with available tags and smartgroups
-
receivers
()¶
-
resizeEvent
()¶
-
saveSymbol
(self)¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setContext
(self, context: QgsSymbolWidgetContext)¶ Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- Parameters
context (QgsSymbolWidgetContext) – symbol widget context
See also
New in version 3.0.
-
setLineWidth
(self, width: float)¶ - Parameters
width (float) –
-
setMarkerAngle
(self, angle: float)¶ - Parameters
angle (float) –
-
setMarkerSize
(self, size: float)¶ - Parameters
size (float) –
-
setSymbolColor
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶ - Parameters
color (Union[QColor) –
-
setSymbolFromStyle
(self, index: QModelIndex)¶ - Parameters
index (QModelIndex) –
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateDataDefinedLineWidth
(self)¶
-
updateDataDefinedMarkerAngle
(self)¶
-
updateDataDefinedMarkerSize
(self)¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶