[Qgis-developer] Change qgis-bin dialog text in Python

Jakob Lanstorp jlanstorp at gmail.com
Wed Oct 21 00:31:51 PDT 2015


I have an Python action using a REST service to get picture. The picture is
rendered with a QLabel. How can I change the default dialog text 'qgis-bin'?

Dialog:

<http://osgeo-org.1560.x6.nabble.com/file/n5231588/Image4.jpg> 

WFS layer action code:

import urllib
from PyQt4.QtCore import Qt
img = QtGui.QImage()
lbl = QtGui.QLabel() 	
url = r'[% "cyklogram" %]'
data = urllib.urlopen(url).read()
img.loadFromData(data)
lbl.setPixmap(QtGui.QPixmap(img).scaled(650,250,Qt.KeepAspectRatio))
lbl.show()

Jakob



-----
Jakob Lanstorp
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Change-qgis-bin-dialog-text-in-Python-tp5231588.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list