Class: QgsTransactionGroup¶
-
class
qgis.core.
QgsTransactionGroup
(parent: QObject = None)¶ Bases:
PyQt5.QtCore.QObject
Constructor for QgsTransactionGroup
Enums
Methods
Add a layer to this transaction group.
Returns the connection string used by this transaction group.
Returns
True
if there are no layers in this transaction group.Gets the set of layers currently managed by this transaction group.
Returns
True
if any of the layers in this group reports a modification.Returns the provider key used by this transaction group.
Signals
Will be emitted whenever there is a commit error [signal]
Attributes
-
addLayer
(self, layer: QgsVectorLayer) → bool¶ Add a layer to this transaction group.
Will return
True
if it is compatible and has been added.
-
childEvent
()¶
-
commitError
¶ Will be emitted whenever there is a commit error [signal]
-
connString
(self) → str¶ Returns the connection string used by this transaction group. Layers need be compatible when added.
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
isEmpty
(self) → bool¶ Returns
True
if there are no layers in this transaction group.
-
isSignalConnected
()¶
-
layers
(self) → Set[QgsVectorLayer]¶ Gets the set of layers currently managed by this transaction group.
- Returns
Layer set
-
modified
(self) → bool¶ Returns
True
if any of the layers in this group reports a modification.
-
providerKey
(self) → str¶ Returns the provider key used by this transaction group. Layers need be compatible when added.
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-