Updated Plugin migration to QGIS 3 (markdown)

Etienne Trimaille 2018-02-28 16:01:07 +03:00
parent 807b811da0
commit 11314c996f

@ -12,6 +12,8 @@ In QGIS 3, GeoPackage is much more present. Avoid creating shapefile in your plu
- [git checkout the source tree](https://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html#toc9) and run QGIS/scripts/2to3 (https://github.com/qgis/QGIS/blob/master/scripts/2to3) on your plugin
- `path/to/QGIS/scripts/2to3 /path/to/your/plugin`
- This command will print the diff. If you want to write these changes to files, use `-w`
- The script will automatically update from Py2 to Py3, from Qt4 to the correct PyQt version. For instance `from PyQt4.QtGui import QMainWindow` will become `from qgis.PyQt.QtWidgets import QMainWindow`.
- The script will update some QGIS API changes.
- have a good look at: https://qgis.org/api/api_break.html
- make sure you do python3 and Qt5 !
- tweak and fix until it works :-)