mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-14 00:04:06 -04:00
Updated Plugin migration to QGIS 3 (markdown)
parent
733c0cc376
commit
c9b1249ee8
@ -22,6 +22,7 @@ While in QGIS 2, plugins were located in your home directory in the `.qgis2/pyth
|
|||||||
- 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 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 command will update some QGIS API changes.
|
- The command will update some QGIS API changes.
|
||||||
|
- without `qgis2to3`, using `2to3` from QGIS source tree, located in `path/to/QGIS/scripts/2to3`. Follow instructions from `qgis2to3`
|
||||||
- `qgis2apifinder /path/to/my/plugin`
|
- `qgis2apifinder /path/to/my/plugin`
|
||||||
- This will show you potential api v2 only usages (as listed on https://qgis.org/api/api_break.html)
|
- This will show you potential api v2 only usages (as listed on https://qgis.org/api/api_break.html)
|
||||||
- set `qgisMinimumVersion=3.0` in metadata.txt
|
- set `qgisMinimumVersion=3.0` in metadata.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user