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

Étienne Trimaille 2025-01-07 10:59:23 +01:00
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