<div dir="ltr"><div class="gmail_quote"><div dir="ltr">čt 11. 10. 2018 v 17:24 odesílatel Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote">A 2016 GSoC project took different approach which could be reused in QGIS independently from the current GRASS Plugin or Processing plugin approaches. This is a good base for future work, perhaps even for auto-generating the files needed for GRASS plugin or Processing plugin.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="https://trac.osgeo.org/grass/wiki/GSoC/2016/PyQtGUI" target="_blank">https://trac.osgeo.org/grass/wiki/GSoC/2016/PyQtGUI</a></div></div></div></blockquote><div><br></div><div><br></div>If you start QGIS from the GRASS GIS shell, then you can use a module g.pyqt from the above-mentioned GSoC project and parse the name of the AddOn as a parameter. It will generate the fully-working GUI for you. <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">So if you want to create a QGIS plugin and don't want to create the GUI from scratch, then you can call something like `g.pyqt r.estimap` after clicking on the icon of the plugin and it's done. However, it will still work just with maps in GRASS, it will not import them into QGIS or something, and there is also this strange thing about running QGIS from the GRASS GIS shell. <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">And I didn't touch the code for some time, so there are still some places which should be improved. But it should be working if you have your AddOn installed in GRASS. <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">PS: I believe that the code can be also re-written to generate the QGIS plugin GUI without all those strange necessities without so much work, but unfortunately I don't have enough time to do it in the near future. <br></div></div>