"Marco Lechner - FOSSGIS e.V. via QGIS-Developer"
<qgis-developer@lists.osgeo.org> writes:

> I already started making my QGIS plugins qt6 compatible. It wasn't
> complicated - thanks to the given migration and check tools. My code
> is Qt5/Qt6 compatible now, but I am not sure what will be the
> qgisMinimumVersion? Which QGIS official packages are usually compiled
> with which Qt5 and Python versions? I can only check my available
> installations, which are all 3.40 LTR on either Ubuntu or Windows. I
> guess a qt5/qt6-compatible Plugin may need at least Qt5.15.x and
> Python 3.12? Until now my plugins qgisMinimumVersion was 3.4 - should
> this be edited to 3.40? Ot what may fit best?

Keep in mind that there is qgis the source code and, for a limited set
of operating systems and CPU types, packages published by qgis.org.
Then there are packages in various packaging systems (such as GNU/Linux
distributions, but also pkgsrc, FreeBSD ports, probably homebrew).  The
point of listing those is that saying "qgis x uses python y" is not a
sensible statement.

My understanding is that older qgis was qt5 only and supported a variety
of python versions, and that some recentish version can then build qt5
or qt6, and probably at eome point a branch will be qt6 only.  qgis
master says the minimum python version is 3.9.

I am guessing your plugin does a try/import/except for qt6 so that if
it's going to use qt5 it can run on a machine without qt6 installed.

I think your minimum version needs to be the oldest version of qgis that
has some qgis feature you really need, and you should try to keep it as
low as possible.  I am unclear on if there is a facility to mark a
plugin as needing 3.12, or if plugins are supposed to only use python
language features matching the lowest python version accepted by the
lowest qgis version they require.

Python 3.12 seems like a very aggressive requirement for now.

Put another way, if someone running 3.34 built with qt5 and python 3.11
(which is behind but not egregious as 3.40 is pretty new) tries to load
your plugin, what goes wrong?
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to