Class: QgsTransactionGroup

class qgis.core.QgsTransactionGroup(parent: QObject = None)

Bases: PyQt5.QtCore.QObject

Constructor for QgsTransactionGroup

Methods

addLayer

Add a layer to this transaction group.

childEvent

connString

Returns the connection string used by this transaction group.

connectNotify

customEvent

disconnectNotify

isEmpty

Returns True if there are no layers in this transaction group.

isSignalConnected

layers

Gets the set of layers currently managed by this transaction group.

modified

Returns True if any of the layers in this group reports a modification.

providerKey

Returns the provider key used by this transaction group.

receivers

sender

senderSignalIndex

timerEvent

Signals

commitError

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

addLayer(self, layer: QgsVectorLayer) bool

Add a layer to this transaction group.

Will return True if it is compatible and has been added.

Parameters

layer (QgsVectorLayer) –

Return type

bool

childEvent(self, QChildEvent)
commitError

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

connString(self) str

Returns the connection string used by this transaction group. Layers need be compatible when added.

Return type

str

connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
isEmpty(self) bool

Returns True if there are no layers in this transaction group.

Return type

bool

isSignalConnected(self, QMetaMethod) bool
layers(self) Set[QgsVectorLayer]

Gets the set of layers currently managed by this transaction group.

Return type

Set[QgsVectorLayer]

Returns

Layer set

modified(self) bool

Returns True if any of the layers in this group reports a modification.

Return type

bool

providerKey(self) str

Returns the provider key used by this transaction group. Layers need be compatible when added.

Return type

str

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
senderSignalIndex(self) int
timerEvent(self, QTimerEvent)