Updated Plugin migration to be compatible with Qt5 and Qt6 (markdown)

rvanmaaren 2025-09-05 16:01:04 +02:00
parent 39232583bb
commit 2e58bf1aa6

@ -25,6 +25,17 @@ It's possible to make a plugin for both Qt5 and Qt6.
This will get you in the right direction but might not do all necessary changes. Make sure to test your plugin thoroughly. Consider using an IDE with inspection that can notify you about broken imports, bad usage or non-existent references. This will get you in the right direction but might not do all necessary changes. Make sure to test your plugin thoroughly. Consider using an IDE with inspection that can notify you about broken imports, bad usage or non-existent references.
### Use OSGeo4W shell
```sh
call "C:\Program Files\QGISQT6 x.xx.x\bin\o4w_env.bat"
call "C:\Program Files\QGISQT6 x.xx.x\bin\qt6_env.bat"
call "C:\Program Files\QGISQT6 x.xx.x\bin\qgis-qt6-bin.env"
set PYTHONPATH=C:\Program Files\QGISQT6 x.xx.x\apps\qgis-qt6\python;%PYTHONPATH%
"C:\Program Files\QGISQT6 x.xx.x\apps\Python312\python3.exe" "path/to/pyqt5_to_pyqt6.py" "path/to/plugin"
```
### Use Docker image ### Use Docker image
A bundled image with QGIS based on Qt6, including Oracle client and PDAL and the migration script is available: <https://gitlab.com/Oslandia/qgis/pyqgis-4-checker>. It can be used like this: A bundled image with QGIS based on Qt6, including Oracle client and PDAL and the migration script is available: <https://gitlab.com/Oslandia/qgis/pyqgis-4-checker>. It can be used like this: