-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Plugin migration to be compatible with Qt5 and Qt6
Hannes edited this page Nov 6, 2024
·
4 revisions
It's possible to make a plugin for both Qt5 and Qt6.
pip install astpretty tokenize-rt
- Install
python3-pyqt6
,python3-pyqt6.qtsvg
,python3-pyqt6.qsci
- Download the script available on GitHub
pyqt5_to_pyqt6.py /path/to/plugin
- Edit the
metadata.txt
by addingsupportsQt6=True
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.
- Removed Modules in Qt 6.0
- Porting to Qt 6
- Changes to Qt Modules in Qt 6
- Qt Namespace lists all those enums