Shehadeh, Karim Karim.Shehadeh at verint.com
Thu Mar 3 14:32:43 GMT 2005

We have an application that uses PyQt to generate QT dialogs that are
intended to be children of an MFC application.  There doesn't appear to
be a simple way to specify a parent window for the QT dialog (or
QApplication object) from outside of Python.  So, what happens is that
when the QT dialog appears, it sets its parent to the desktop window
forcing the windows taskbar to show the dialog as a separate

On a related note, when PyQT is used to display the dialog AND the MFC
application initializes its own QApplication via the MFC Migration Kit,
the application will crash after the QT dialog is closed.  From what I
can tell, PyQT and the Migration Kit are sharing the same global qApp
variable which is being set to NULL after PyQT returns. 

It would seem that a good solution to these problems would be to somehow
give PyQT a QApplication object to use or tell it to use the current
global qApp object (if that's possible). 

Does anyone have any ideas about how this can be done?

Thanks for your help,

Karim Shehadeh

This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message.  If you have received this electronic message in error, please notify us by replying to this e-mail. (1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050303/8ba45aa2/attachment.html

More information about the PyQt mailing list