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
053d405955
commit
7b3de1992c
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
It's possible to make a plugin for both Qt5 and Qt6.
|
It's possible to make a plugin for both Qt5 and Qt6.
|
||||||
|
|
||||||
|
## Script
|
||||||
|
|
||||||
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`
|
||||||
@ -13,8 +14,15 @@ 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.
|
||||||
|
|
||||||
## Official C++ documentation
|
## Official C++ documentation
|
||||||
|
|
||||||
- [Removed Modules in Qt 6.0](https://doc.qt.io/qt-6/whatsnew60.html#removed-modules-in-qt-6-0)
|
- [Removed Modules in Qt 6.0](https://doc.qt.io/qt-6/whatsnew60.html#removed-modules-in-qt-6-0)
|
||||||
- [Porting to Qt 6](https://doc.qt.io/qt-6/portingguide.html)
|
- [Porting to Qt 6](https://doc.qt.io/qt-6/portingguide.html)
|
||||||
- [Changes to Qt Modules in Qt 6](https://doc.qt.io/qt-6/modulechanges.html)
|
- [Changes to Qt Modules in Qt 6](https://doc.qt.io/qt-6/modulechanges.html)
|
||||||
- e.g. [QAction has moved to QtGui](https://doc.qt.io/qt-6/widgets-changes-qt6.html#qaction-qactiongroup)!
|
- e.g. [QAction has moved to QtGui](https://doc.qt.io/qt-6/widgets-changes-qt6.html#qaction-qactiongroup)!
|
||||||
- [Qt Namespace](https://doc.qt.io/qt-6/qt.html) lists all those enums
|
- [Qt Namespace](https://doc.qt.io/qt-6/qt.html) lists all those enums
|
||||||
|
|
||||||
|
## Manual checks
|
||||||
|
|
||||||
|
PyQt5 | PyQt6
|
||||||
|
:---: | :---:
|
||||||
|
Qt.UserRole | Qt.ItemDataRole.UserRole
|
||||||
|
Loading…
x
Reference in New Issue
Block a user