[PyQt] Modal QMainWindow

ARCHER, Thomas THOMAS.ARCHER at airbus.com
Fri Apr 18 08:20:48 BST 2008


A quick query someone might be able to help me with. I've got a QMainWindow (displaying vtk graphics), which spawns a new QMainWindow (displaying further graphics). I've managed to make this window modal, by setting the window flags, but what I'd really like is for it to block code flow until it's closed, in the same way a QDialog does when you call exec_(). Is there any way to do this, if not what's the standard practice for passing data between two windows like this? I would use a QDialog, but the two windows have to resemble each other quite closely and have menu's and toolbars. 

Regards,
Tom

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.




More information about the PyQt mailing list