mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-22 00:02:40 -04:00
Updated Plugin migration to be compatible with Qt5 and Qt6 (markdown)
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. 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. `pyqt5_to_pyqt6.py /path/to/plugin`
|
||||
1. Edit the `metadata.txt` by adding `supportsQt6=True`
|
||||
|
Loading…
x
Reference in New Issue
Block a user