QGIS-Contour-Plugin icon indicating copy to clipboard operation
QGIS-Contour-Plugin copied to clipboard

ensure Qt6 compatibility

Open t0b3 opened this issue 1 week ago • 0 comments

qgis plugins need to ensure they are compatible with Qt6 to continue to work with future qgis releases

see https://lists.osgeo.org/pipermail/qgis-developer/2024-January/066417.html

  • There's a script available in the repo for automatically upgrading QGIS plugins/scripts to Qt 6 compatibility WITHOUT BREAKING compatibility with older releases/qt5 based releases. It's here: https://github.com/qgis/QGIS/blob/master/scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py

  • After running the script, you'll also need to add "supportsQt6=yes" to your plugins metadata configuration. Otherwise the Qt6 builds will just ignore your plugin and will refuse to load it. See eg https://github.com/wonder-sk/qgis-first-aid-plugin/commit/3687be7d9e026c59c9b775caaf5ee18cf8639886

t0b3 avatar Feb 22 '25 11:02 t0b3