Class: QgsAbstractRelationEditorConfigWidget

class qgis.gui.QgsAbstractRelationEditorConfigWidget(relation: QgsRelation, parent: QWidget)

Bases: PyQt5.QtWidgets.QWidget

Create a new configuration widget

Parameters
  • relation – The relation for which the configuration dialog will be created

  • parent – A parent widget

This class should be subclassed for every configurable relation widget type.

It implements the GUI configuration widget and transforms this to/from a configuration.

It will only be instantiated by {QgsAbstractRelationEditorWidgetFactory}

Methods

actionEvent

changeEvent

childEvent

closeEvent

config

Create a configuration from the current GUI state

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

layer

Returns the layer for which this configuration widget applies

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

nmRelation

Returns the nm relation for which this configuration widget applies

paintEvent

receivers

relation

Returns the relation for which this configuration widget applies

resizeEvent

sender

senderSignalIndex

setConfig

Update the configuration widget to represent the given configuration.

setNmRelation

Set the nm relation for this widget.

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
config(self)Dict[str, Any]

Create a configuration from the current GUI state

Return type

Dict[str, Any]

Returns

A widget configuration

connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent)bool
focusInEvent(self, QFocusEvent)
focusNextChild(self)bool
focusNextPrevChild(self, bool)bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self)bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod)bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
layer(self)QgsVectorLayer

Returns the layer for which this configuration widget applies

Return type

QgsVectorLayer

Returns

The layer

leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric)int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr)Tuple[bool, int]
nmRelation(self)QgsRelation

Returns the nm relation for which this configuration widget applies

Return type

QgsRelation

Returns

The nm relation

paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL)int
relation(self)QgsRelation

Returns the relation for which this configuration widget applies

Return type

QgsRelation

Returns

The relation

resizeEvent(self, QResizeEvent)
sender(self)QObject
senderSignalIndex(self)int
setConfig(self, config: Dict[str, Any])

Update the configuration widget to represent the given configuration.

Parameters

config (Dict[str) – The configuration which should be represented by this widget

setNmRelation(self, nmRelation: QgsRelation)

Set the nm relation for this widget.

Parameters

nmRelation (QgsRelation) – The nm relation

sharedPainter(self)QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)