[Qgis-developer] Missing QgsApplication.instance().argv in master

Matthias Kuhn matthias at opengis.ch
Mon Nov 28 06:44:42 PST 2016


Hi Alessandro,

QApplication is part of PyQt, did you check if it also changed if you
run a non-QGIS pyqt application?

Matthias

On 11/28/2016 03:35 PM, Alessandro Pasotti wrote:
> Hi,
> 
> the following code is working fine in 2.x but not in master:
> 
>>>> QgsApplication.instance().argv()
> Traceback (most recent call last):
>   File "/usr/lib/python3.5/code.py", line 91, in runcode
>     exec(code, self.locals)
>   File "<input>", line 1, in <module>
> AttributeError: 'QApplication' object has no attribute 'argv'
> 
> 
> I looked at the sip file but I did not find the reason why it's now
> failing, any idea what has changed in this regard?
> 
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it <http://www.itopen.it>
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 


More information about the Qgis-developer mailing list