Class: QgsLayerPropertiesWidget¶
-
class
qgis.gui.
QgsLayerPropertiesWidget
(layer: QgsSymbolLayer, symbol: QgsSymbol, vl: QgsVectorLayer, parent: QWidget = None)¶ Bases:
QgsPanelWidget
,QgsExpressionContextGenerator
Constructor for QgsLayerPropertiesWidget.
- Parameters
layer (QgsSymbolLayer) – the symbol layer
symbol (QgsSymbol) – the symbol
vl (QgsVectorLayer) – associated vector layer
parent (QWidget = None) –
parent widget
Methods
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
- rtype
QgsExpressionContext
Registers a data defined override button.
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs
- param layer
Signals
changeLayer(self,
QgsSymbolLayer
) [signal]changed(self) [signal]
-
actionEvent
()¶
-
changeEvent
()¶
-
changeLayer
¶ changeLayer(self,
QgsSymbolLayer
) [signal]
-
changed
¶ changed(self) [signal]
-
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
()¶
-
createExpressionContext
(self) → QgsExpressionContext¶ - Return type
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
emitSignalChanged
(self)¶
-
enterEvent
()¶
-
event
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
layerTypeChanged
(self)¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
populateLayerTypes
(self)¶
-
receivers
()¶
-
registerDataDefinedButton
(self, button: QgsPropertyOverrideButton, key: QgsSymbolLayer.Property)¶ Registers a data defined override button. Handles setting up connections for the button and initializing the button to show the correct descriptions and help text for the associated property.
New in version 3.0.
- Parameters
button (QgsPropertyOverrideButton) –
key (QgsSymbolLayer.Property) –
-
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.
-
setDockMode
(self, dockMode: bool)¶ Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs
- Parameters
dockMode (bool) – True to enable dock mode.
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
updateSymbolLayerWidget
(self, layer: QgsSymbolLayer)¶ - Parameters
layer (QgsSymbolLayer) –
-
wheelEvent
()¶