[PySide] Application.type doesn't exist in PySide2 anymore

Frank Rueter | OHUfx frank at ohufx.com
Sun Dec 10 22:52:58 CET 2017

And another PySide2 migration question:
I used to do this to check id an app is run in GUI or command line mode:
if QtWidgets.QApplication.type() == QtWidgets.QApplication.Type.GuiClient:

However QtWidgets.QApplication.type() doesn't exist in PySdie2 anymore.
What's the best way to achieve the same goal?



ohufxLogo 50x50 <http://www.ohufx.com> 	
	*vfx compositing <http://ohufx.com/compositing.html> | *workflow 
customisation and consulting <http://ohufx.com/customising.html>* *

Your gateway to over 1,000 free tools... right inside of Nuke 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20171211/60a06673/attachment.html>

More information about the PySide mailing list