Skip to main content

Timeline for PyQGIS autoincrement id field

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Sep 7, 2022 at 3:21 comment added Ben W @william3031, yes- correct. When running code from the QGIS Python console, you don't need to explicitly import qgis.core modules, qt modules or built in Python modules. You still need to import any installed 3rd party Python modules. However in plugins, custom functions, Python actions etc. you must explicitly import all used modules/ classes.
Sep 7, 2022 at 3:13 comment added william3031 I assume it relates to them being imported here: docs.qgis.org/2.8/en/docs/pyqgis_developer_cookbook/…
Sep 7, 2022 at 3:12 history edited Ben W CC BY-SA 4.0
deleted 26 characters in body
Sep 7, 2022 at 3:10 comment added william3031 Also, I note that there was no need to import any of the functions, is that just because I was running this from python within QGIS?
Sep 7, 2022 at 3:10 comment added Ben W @william3031, no worries :-)
Sep 7, 2022 at 3:09 history edited Ben W CC BY-SA 4.0
added 213 characters in body
Sep 7, 2022 at 3:08 comment added william3031 Great. Thanks for the detailed explanation.
Sep 7, 2022 at 3:07 vote accept william3031
Sep 7, 2022 at 3:03 history edited Ben W CC BY-SA 4.0
added 213 characters in body
Sep 7, 2022 at 2:56 history answered Ben W CC BY-SA 4.0