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
7b3de1992c
commit
f32e920400
@ -19,10 +19,15 @@ This will get you in the right direction but might not do all necessary changes.
|
|||||||
- [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), all enums in Qt
|
||||||
|
|
||||||
## Manual checks
|
## Manual checks
|
||||||
|
|
||||||
|
Using the link above about [Qt Namespace](https://doc.qt.io/qt-6/qt.html), enum must changed accordingly.
|
||||||
|
|
||||||
|
For instance :
|
||||||
|
|
||||||
PyQt5 | PyQt6
|
PyQt5 | PyQt6
|
||||||
:---: | :---:
|
:---: | :---:
|
||||||
Qt.UserRole | Qt.ItemDataRole.UserRole
|
Qt.UserRole | Qt.ItemDataRole.UserRole
|
||||||
|
Qt.blue | Qt.GlobalColor.blue
|
Loading…
x
Reference in New Issue
Block a user