Skip to content

Plugin migration to be compatible with Qt5 and Qt6

Hannes edited this page Nov 6, 2024 · 4 revisions

Qt6 migration

It's possible to make a plugin for both Qt5 and Qt6.

  1. pip install astpretty tokenize-rt
  2. Install python3-pyqt6, python3-pyqt6.qtsvg, python3-pyqt6.qsci
  3. Download the script available on GitHub
  4. pyqt5_to_pyqt6.py /path/to/plugin
  5. Edit the metadata.txt by adding supportsQt6=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.

Official C++ documentation

Clone this wiki locally