PyQT: qt.qApp

Axel Mittendorf newsreply at transfertech.de
Wed Jan 14 17:14:50 CET 2004


Hello,
in my application I want to subclass qt.QApplication and
use this subclass instead of QApplication for my gui. Some
of my modules are automatically generated by pyuic and
I am not allowed to change their source code. The problem
is these modules do "from qt import *" and use an object
called 'qApp' which seems to be an instance of qt.QApplication
and I want them to use my subclass (exactly its instance)
instead of 'qApp'. How can I solve this?

Can someone tell me what qt.qApp is and what it is used for?
(I'm using PyQT 3.6.)

TIA,
Axel





More information about the Python-list mailing list