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
actionEvent()
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

setContext()

New in version 3.0.

Return type

QgsSymbolWidgetContext

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

QgsVectorLayer

leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
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

context()

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) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateDataDefinedLineWidth(self)
updateDataDefinedMarkerAngle(self)
updateDataDefinedMarkerSize(self)
updateMicroFocus()
wheelEvent()