QApp macro returns QtCoreApplication
-
Been using PyQt in a Qt based application that includes a python interpreter to create scripted tools with interfaces that integrate well with the base application.
To do this i have been using QtGui.qApp to gain access to the running application in order to access the applications windows to insert my own interfaces.
In PyQt this works fine and from qApp i get back the QtApplication instance, however when trying it with PySide i now get nothing back from the qApp macro so insted i try to use QtGui.QApplication.instance() and then i get a QCoreApplication back instead which does not give me any access to the widgets of the application.
Any thoughts on why this may be?
-
Maybe your problem is related to this bug: http://bugs.pyside.org/show_bug.cgi?id=816 . It was fixed today. If possible you can use the nightly build version: http://www.pyside.org/files/nightly/ - yes, it's bleeding edge :)