Sunday 24 May 2015

pyqgis - NameError: name 'QImage' is not defined



Traceback (most recent call last):
File "", line 1, in
File "F:/QGIS/bin/test.py", line 6, in
img = QImage(QSize(800,600), QImage.Format_ARGB32_Premultiplied)
NameError: name 'QImage' is not defined

I encountered this error when I was trying for Map Rendering and Printing on python console given in QGIS.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...