Re: [QGIS-Developer] Group stats plugin from 2to3

2018-02-28 Thread Richard Duivenvoorde
On 28-02-18 12:31, Sylvain POULAIN wrote: > Hi, > > I tried to migrate from plugins in Qgis 2 to Qgis 3. > I took the usefull group stats plugin as my main example to make transition. > > Unfortunatelly, /Plugin home page/ and /tracker/ links for this plugins > are dead (

Re: [QGIS-Developer] Group stats plugin from 2to3

2018-02-28 Thread Sylvain POULAIN
Thanks Chistophe and Etienne. Useful links. What I did is : - adding in groupstats.py : from PyQt5.QtWidgets import QAction, QMessageBox - Change QgsMapLayerRegistry to QgsProject - adding in GroupStatsDialog.py : from PyQt5.QtWidgets import QMainWindow, QTableView, QWidget I could clic on

Re: [QGIS-Developer] Group stats plugin from 2to3

2018-02-28 Thread Etienne Trimaille
You can follow these steps: https://github.com/qgis/QGIS/wiki/Plugin-migration-to-QGIS-3 Don't change from PyQt4 to PyQt5, you can switch to "from qgis.PyQt.QtWidgets import QMainWindow" or similar import. 2018-02-28 15:53 GMT+03:00 SIGéal : > Hi, > > A look at this might

Re: [QGIS-Developer] Group stats plugin from 2to3

2018-02-28 Thread SIGéal
Hi, A look at this might help : https://gis.stackexchange.com/questions/260125/make-qgis-python-plugin-for-both-versions-2-x-and-3-x -- Christophe Le 28/02/2018 à 12:31, Sylvain POULAIN a écrit : Hi, I tried to migrate from plugins in Qgis 2 to Qgis 3. I took the usefull group stats plugin

[QGIS-Developer] Group stats plugin from 2to3

2018-02-28 Thread Sylvain POULAIN
Hi, I tried to migrate from plugins in Qgis 2 to Qgis 3. I took the usefull group stats plugin as my main example to make transition. Unfortunatelly, _Plugin home page_ and _tracker_ links for this plugins are dead ( http://plugins.qgis.org/plugins/GroupStats/ ), my apologies if I'm not