Subgroup: Renderer

Class: QgsRendererPropertiesDialog

class qgis.gui.QgsRendererPropertiesDialog(layer: QgsVectorLayer, style: QgsStyle, embedded: bool = False, parent: QWidget = None)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsRendererPropertiesDialog.

Parameters:
  • layer – associated layer
  • style – style collection
  • embedded – set to true to indicate that the dialog will be embedded in another widget, rather

than shown as a dialog by itself :param parent: parent widget

Methods

actionEvent
apply Apply the changes from the dialog to the layer.
changeEvent
childEvent
closeEvent
connectNotify
connectValueChanged Connect the given slot to the value changed event for the set of widgets Each widget is checked for type and the common type of signal is connected to the slot.
contextMenuEvent
create
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
eventFilter
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
onOK Apply and accept the changes for the dialog.
openPanel Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event.
paintEvent
receivers
rendererChanged called when user changes renderer type
resizeEvent
sender
senderSignalIndex
setDockMode Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs
setMapCanvas Sets the map canvas associated with the dialog.
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

layerVariablesChanged Emitted when expression context variables on the associated vector layers have been changed.
showPanel Emit when you require a panel to be show in the interface.
widgetChanged Emitted when something on the widget has changed.

Attributes

actionEvent()
apply(self)

Apply the changes from the dialog to the layer.

changeEvent()
childEvent()
closeEvent()
connectNotify()
connectValueChanged(self, widgets: Iterable[QWidget], slot: str)

Connect the given slot to the value changed event for the set of widgets Each widget is checked for type and the common type of signal is connected to the slot.

Parameters:
  • widgets – The list of widgets to check.
  • slot – The slot to connect to the signals.
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent(self, event: QKeyEvent)
keyReleaseEvent()
layerVariablesChanged

Emitted when expression context variables on the associated vector layers have been changed. Will request the parent dialog to re-synchronize with the variables. [signal]

leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
onOK(self)

Apply and accept the changes for the dialog.

openPanel(self, panel: QgsPanelWidget)

Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event.

If dock mode is false this method will open a dialog and block the user.

Parameters:panel – The panel widget to open.
paintEvent()
receivers()
rendererChanged(self)

called when user changes renderer type

resizeEvent()
sender()
senderSignalIndex()
setDockMode(self, dockMode: bool)

Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs

Parameters:dockMode – True to enable dock mode.
setMapCanvas(self, canvas: QgsMapCanvas)

Sets the map canvas associated with the dialog. This allows the widget to retrieve the current map scale and other properties from the canvas.

Parameters:canvas – map canvas

New in version 2.12.

sharedPainter()
showEvent()
showPanel

Emit when you require a panel to be show in the interface.

Parameters:panel – The panel widget to show.

Note

If you are connected to this signal you should also connect given panels showPanel signal as they can be nested. [signal]

tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()
widgetChanged

Emitted when something on the widget has changed. All widgets will fire this event to notify of an internal change. [signal]