[PySide] Application.type doesn't exist in PySide2 anymore
Alexey Vihorev
vihorev at gmail.com
Sun Dec 10 22:58:36 CET 2017
http://doc.qt.io/qt-5/sourcebreaks.html
• QCoreApplication::Type and QApplication::type() are removed. These Qt 3 legacy application types did not match the application types available in Qt 5. Use qobject_cast instead to dynamically find out the exact application type.
От: Frank Rueter | OHUfx
Отправлено: 10 декабря 2017 г. в 23:53
Кому: pyside at qt-project.org
Тема: [PySide] Application.type doesn't exist in PySide2 anymore
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?
Thanks,
frank
--
vfx compositing | workflow customisation and consulting
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/20171210/6ec7b034/attachment.html>
More information about the PySide
mailing list