Message 1 of 8
QApplication.instance() returns QCoreApplication instance
Not applicable
09-19-2019
08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
In python, I am trying to get the active QApplication object for Max in order to access top-level information such as the active QScreen, screen geometry, etc.
When I run the tollowing code, I get a QCoreApplication instead of the expected QGuiApplication or QApplication:
QtGui.QGuiApplication.instance()
Is there another method for getting the QApplication?
