Class: QgsSymbolSelectorDialog

class qgis.gui.QgsSymbolSelectorDialog(symbol: QgsSymbol | None, style: QgsStyle | None, vl: QgsVectorLayer | None, parent: QWidget | None = None, embedded: bool = False)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsSymbolSelectorDialog.

Parameters:
actionEvent(self, a0: QActionEvent | None)
addLayer(self)
advancedMenu(self) QMenu | None

Returns menu for “advanced” button - create it if doesn’t exist and show the advanced button

Return type:

Optional[QMenu]

buttonBox(self) QDialogButtonBox | None

Returns a reference to the dialog’s button box.

Added in version 3.10.

Return type:

Optional[QDialogButtonBox]

changeEvent(self, a0: QEvent | None)
changeLayer(self, layer: QgsSymbolLayer | None)

alters tree and sets proper widget when Layer Type is changed note: The layer is received from the LayerPropertiesWidget

Parameters:

layer (Optional[QgsSymbolLayer])

childEvent(self, a0: QChildEvent | None)
closeEvent(self, a0: QCloseEvent | None)
connectNotify(self, signal: QMetaMethod)
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()

Return type:

QgsSymbolWidgetContext

contextMenuEvent(self, a0: QContextMenuEvent | None)
create(self, window: PyQt5.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, a0: QEvent | None)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, signal: QMetaMethod)
dragEnterEvent(self, a0: QDragEnterEvent | None)
dragLeaveEvent(self, a0: QDragLeaveEvent | None)
dragMoveEvent(self, a0: QDragMoveEvent | None)
dropEvent(self, a0: QDropEvent | None)
duplicateLayer(self)

Duplicates the current symbol layer and places the duplicated layer above the current symbol layer

enterEvent(self, a0: QEvent | None)
event(self, a0: QEvent | None) bool
eventFilter(self, a0: QObject | None, a1: QEvent | None) bool
focusInEvent(self, a0: QFocusEvent | None)
focusNextChild(self) bool
focusNextPrevChild(self, next: bool) bool
focusOutEvent(self, a0: QFocusEvent | None)
focusPreviousChild(self) bool
hideEvent(self, a0: QHideEvent | None)
initPainter(self, painter: QPainter | None)
inputMethodEvent(self, a0: QInputMethodEvent | None)
isSignalConnected(self, signal: QMetaMethod) bool
keyPressEvent(self, e: QKeyEvent | None)
Parameters:

e (Optional[QKeyEvent])

keyReleaseEvent(self, a0: QKeyEvent | None)
layerChanged(self)
leaveEvent(self, a0: QEvent | None)
lockLayer(self)
metric(self, a0: QPaintDevice.PaintDeviceMetric) int
mouseDoubleClickEvent(self, a0: QMouseEvent | None)
mouseMoveEvent(self, a0: QMouseEvent | None)
mousePressEvent(self, a0: QMouseEvent | None)
mouseReleaseEvent(self, a0: QMouseEvent | None)
moveEvent(self, a0: QMoveEvent | None)
moveLayerDown(self)
moveLayerUp(self)
nativeEvent(self, eventType: QByteArray | bytes | bytearray, message: PyQt5.sip.voidptr | None)
paintEvent(self, a0: QPaintEvent | None)
receivers(self, signal: PYQT_SIGNAL) int
removeLayer(self)
resizeEvent(self, a0: QResizeEvent | None)
sender(self) QObject | None
senderSignalIndex(self) int
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()

sharedPainter(self) QPainter | None
showEvent(self, a0: QShowEvent | None)
symbol(self) QgsSymbol | None

Returns the symbol that is currently active in the widget. Can be None.

Return type:

Optional[QgsSymbol]

Returns:

The active symbol.

symbolChanged(self)

Slot to update tree when a new symbol from style

symbolModified

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

tabletEvent(self, a0: QTabletEvent | None)
timerEvent(self, a0: QTimerEvent | None)
updateLayerPreview(self)
updateMicroFocus(self)
updatePreview(self)
wheelEvent(self, a0: QWheelEvent | None)