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

Matthias Kuhn 2025-02-11 08:02:09 +01:00
parent 44fafbac7b
commit 8534e6bc60

@ -7,7 +7,7 @@ It's possible to make a plugin for both Qt5 and Qt6.
1. `pip install astpretty tokenize-rt` 1. `pip install astpretty tokenize-rt`
1. Install `python3-pyqt6`, `python3-pyqt6.qtsvg`, `python3-pyqt6.qsci` 1. Install `python3-pyqt6`, `python3-pyqt6.qtsvg`, `python3-pyqt6.qsci`
1. Download the script available on [GitHub](https://github.com/qgis/QGIS/blob/master/scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py) 1. Download the [pyqt5_to_pyqt6 script](https://github.com/qgis/QGIS/blob/master/scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py)
1. You should check that `PyQt5` is not available in the Python environment, the script will work better 1. You should check that `PyQt5` is not available in the Python environment, the script will work better
1. `pyqt5_to_pyqt6.py /path/to/plugin` 1. `pyqt5_to_pyqt6.py /path/to/plugin`
1. Edit the `metadata.txt` by adding `supportsQt6=True` 1. Edit the `metadata.txt` by adding `supportsQt6=True`