Updated Plugin migration to QGIS 3 (markdown)

Pirmin Kalberer 2018-01-17 09:58:25 +01:00
parent 16be81262d
commit 897d630ba0

@ -1,4 +1,4 @@
QGIS 3 has entered feature freeze. It's, therefore, time to port your plugin. QGIS 3 has entered feature freeze. It's, therefore, time to port your plugin. But be aware that the _API is not freezed yet_.
While you are porting/rewriting your plugin, think about using QGIS native widgets. For instance, if you need a combobox providing a list of layers, use a `QgsMapLayerComboBox` instead of a `QComboBox`. There is also `QgsFieldComboBox` if you need to pick a field in a vector layer. The full list of widgets is here http://python.qgis.org/api/gui/index.html It's less code to write for you, and users will have the same user experience across plugins and QGIS Desktop. While you are porting/rewriting your plugin, think about using QGIS native widgets. For instance, if you need a combobox providing a list of layers, use a `QgsMapLayerComboBox` instead of a `QComboBox`. There is also `QgsFieldComboBox` if you need to pick a field in a vector layer. The full list of widgets is here http://python.qgis.org/api/gui/index.html It's less code to write for you, and users will have the same user experience across plugins and QGIS Desktop.