I have written code that automatically creates an empty QgsVectorLayer, adds it
to the layer panel; I add a call to
vlayer.featureAdded.connect(self.check_size) on the created layer that starts
an edit session as well as checks that my polygon is within a min and max size.
The user can then us
Hard to tell where the issue is without a minimal reproducible code
example...
Best always use the "with edit():" context instead of manually fiddling
around with startEditing/commitChanges.
And if you use functions that return success codes, make sure you check
them.
Cheers, Hannes
Am 1
-GRL-VA CIV via QGIS-Developer
Sent: Friday, March 17, 2023 7:44 PM
To: qgis-developer@lists.osgeo.org
Subject: [QGIS-Developer] Create layer, start edit session, commit and end edit
session does not get me completely out of edit session and get my pan cursor
back
I have written code that