mirror of
https://github.com/qgis/QGIS.git
synced 2025-08-11 00:03:56 -04:00
Updated Plugin migration to QGIS 3 (markdown)
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
|
- [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`
|
- `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`
|
- 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
|
- have a good look at: https://qgis.org/api/api_break.html
|
||||||
- make sure you do python3 and Qt5 !
|
- make sure you do python3 and Qt5 !
|
||||||
- tweak and fix until it works :-)
|
- tweak and fix until it works :-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user