Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am trying to write a QgisQGIS plugin, which should work on Qgis2QGIS 2 and Qgis3QGIS 3. How can I find out which Qgis versionQGIS version the user is using, so the right imports are made?
Getting user's QGIS version using PyQGIS?
I am trying to write a Qgis plugin, which should work on Qgis2 and Qgis3. How can I find out which Qgis version the user is using, so the right imports are made?
Getting user's QGIS version using PyQGIS
I am trying to write a QGIS plugin, which should work on QGIS 2 and QGIS 3. How can I find out which QGIS version the user is using, so the right imports are made?
I am trying to write a Qgis plugin, which should work on Qgis2 and Qgis3. How can I find out which Qgis version the user is using, so the right imports are made?