[Qgis-developer] [Qgis-psc] Clarification of outcome of PSC meeting 16/1

Matthias Kuhn matthias at opengis.ch
Mon Jan 19 13:23:31 PST 2015


On 01/18/2015 03:26 AM, Martin Dobias wrote:
>
>
> On Sun, Jan 18, 2015 at 3:59 AM, Nathan Woodrow <madmanwoo at gmail.com
> <mailto:madmanwoo at gmail.com>> wrote:
>
>     We have a import hook in place so it would be possible to have
>     just import PyQt and handle which version is imported on our side
>     however this is a bit magic and I'm not sure many people would
>     like it. Stuff like this also breaks tooling because there is no
>     PyQt module so most auto complete will not work. (I have tried
>     this trick before to strip Qgs from the front of all classes on
>     the fly)
>
>
> Agreed that adding magic to import PyQt4 or PyQt5 would not make
> things better. Plugin developers still would need to be aware of that
> and couldn't use new functionality from Qt5 anyway. QGIS 3 will
> supposedly introduce API cleanup, so the plugins will need to be
> adjusted anyway (some more, some less).

That would not prevent devs from importing PyQt4 or PyQt5. It will only
offer the possibility to write portable code. If somebody does not want
this he can go ahead and directly import PyQt5 and use all the new features.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150119/eef78757/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150119/eef78757/attachment.pgp>


More information about the Qgis-developer mailing list