I am finally getting back to this now.
I can't find qobject_cast anywhere. I can only find the C++ example
<http://doc.qt.io/qt-5/qobject.html#qobject_cast> which confuses me a
bit though.
Could somebody share an example how to check the application type in
PySide2 please?
Cheers,
frank
On 11/12/17 12:20 PM, Frank Rueter | OHUfx wrote:
great, thank you, I will look into this...
On 11/12/17 10:58 AM, Alexey Vihorev wrote:
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 <mailto:[email protected]>
*Отправлено: *10 декабря 2017 г. в 23:53
*Кому: *[email protected] <mailto:[email protected]>
*Тема: *[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
--
ohufxLogo 50x50 <http://www.ohufx.com>
*vfx compositing <http://ohufx.com/compositing.html>**| **workflow
customisation and consulting <http://ohufx.com/customising.html> *
http://nukepedia.com/images/nuBridge/logo/nuBridge_logo.png
<http://www.nukepedia.com/nubridge>
Your gateway to over 1,000 free tools... right inside of Nuke
<http://www.nukepedia.com/nubridge>
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside