Class: QgsSymbolSelectorDialog¶
-
class
qgis.gui.
QgsSymbolSelectorDialog
(symbol: QgsSymbol, style: QgsStyle, vl: QgsVectorLayer, parent: QWidget = None, embedded: bool = False)¶ Bases:
PyQt5.QtWidgets.QDialog
Constructor for QgsSymbolSelectorDialog.
- Parameters
symbol (QgsSymbol) – The symbol
style (QgsStyle) – The style
vl (QgsVectorLayer) – Associated vector layer
parent (QWidget = None) – Parent widget
embedded (bool = False) –
True to embed in renderer properties dialog, false otherwise
Methods
Returns menu for “advanced” button - create it if doesn’t exist and show the advanced button
alters tree and sets proper widget when Layer Type is changed note: The layer is received from the LayerPropertiesWidget
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- rtype
QgsSymbolLayer
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer
- param e
- param offset
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- param widget
Returns the symbol that is currently active in the widget.
Slot to update tree when a new symbol from style
Signals
symbolModified(self) [signal]
-
actionEvent
()¶
-
addLayer
(self)¶
-
advancedMenu
(self) → QMenu¶ Returns menu for “advanced” button - create it if doesn’t exist and show the advanced button
- Return type
QMenu
-
changeEvent
()¶
-
changeLayer
(self, layer: QgsSymbolLayer)¶ alters tree and sets proper widget when Layer Type is changed note: The layer is received from the LayerPropertiesWidget
- Parameters
layer (QgsSymbolLayer) –
-
childEvent
()¶
-
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
()¶
-
currentLayer
(self) → QgsSymbolLayer¶ - Return type
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
duplicateLayer
(self)¶ Duplicates the current symbol layer and places the duplicated layer above the current symbol layer
New in version 2.14.
-
enterEvent
()¶
-
event
()¶
-
eventFilter
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
(self, e: QKeyEvent)¶ - Parameters
e (QKeyEvent) –
-
keyReleaseEvent
()¶
-
layerChanged
(self)¶
-
leaveEvent
()¶
-
loadSymbol
(self)¶
-
lockLayer
(self)¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
moveLayerByOffset
(self, offset: int)¶ - Parameters
offset (int) –
-
moveLayerDown
(self)¶
-
moveLayerUp
(self)¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
removeLayer
(self)¶
-
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
New in version 3.0.
-
setWidget
(self, widget: QWidget)¶ - Parameters
widget (QWidget) –
-
showEvent
()¶
-
symbol
(self) → QgsSymbol¶ Returns the symbol that is currently active in the widget. Can be null.
- Return type
- Returns
The active symbol.
-
symbolChanged
(self)¶ Slot to update tree when a new symbol from style
-
symbolModified
¶ symbolModified(self) [signal]
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateLayerPreview
(self)¶
-
updateLockButton
(self)¶
-
updateMicroFocus
()¶
-
updatePreview
(self)¶
-
updateUi
(self)¶
-
wheelEvent
()¶