PyQt with embedded python in Qt App

Phil Thompson phil at riverbankcomputing.co.uk
Thu Nov 1 10:13:55 EDT 2007


On Thursday 01 November 2007, cgrebeld wrote:
> Is it possible for a Qt C++ application, which embeds the python
> interpreter, to import and use PyQt?  There can be only one
> QApplication, which is created in the C++ side, so how would I use
> that from the python side?

QtGui.QApplication.instance()

Phil



More information about the Python-list mailing list