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 – the symbol
style – the style
menu – the menu where to show it
parent – parent widget
layer –
associated vector layer
Enums
Methods
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.
Signals
changed(self) [signal]
Attributes
-
actionEvent
()¶
-
addSymbolToStyle
(self)¶
-
changeEvent
()¶
-
changed
¶ changed(self) [signal]
-
childEvent
()¶
-
clipFeaturesToggled
(self, 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.
-
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.
-
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 – symbol widget context
See also
New in version 3.0.
-
setLineWidth
(self, width: float)¶
-
setMarkerAngle
(self, angle: float)¶
-
setMarkerSize
(self, size: float)¶
-
setSymbolColor
(self, color: Union[QColor, Qt.GlobalColor, QGradient])¶
-
setSymbolFromStyle
(self, index: QModelIndex)¶
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateDataDefinedLineWidth
(self)¶
-
updateDataDefinedMarkerAngle
(self)¶
-
updateDataDefinedMarkerSize
(self)¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶