[Qgis-developer] Showing the QGIS Map

bertGIS bidou_smithers at hotmail.com
Fri Nov 15 01:15:32 PST 2013


Hello,

I would like to be able to show the Map from a QT plugin mainwindow.

In the __init__ I do this:

# Save reference to the QGIS interface
self.iface = iface
# a reference to our map canvas
self.canvas = self.iface.mapCanvas()

And I connect this method on click on the "Show map" button :
def showCanvas(self):  
  self.canvas.show()

This does not run on linux. But at the beginning it seemed to run on
windows.
The problem is that now even on Windows, it does not run.

Can anyone tell me more about that ??

Thanks,
Bert



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Showing-the-QGIS-Map-tp5089298.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list