[PyQt] best practices for MDI app

Danny Shevitz shevitz at lanl.gov
Tue Jul 13 23:24:03 BST 2010


Howdy,

 

I'm a newbie and struggling with developing an MDI app. The basic question
is this: each of my documents 

looks and acts like a dialog.  When I create my child class, should I
subclass QDialog or QWidget?

I am currently using QDialog and add a QDialogButtonBox at the bottom. This
doesn't work as expected.

When I click close, the MDI child blanks but doesn't disappear. It is as if
the QDialog is closing itself, 

but the MDI page still exists fine. If I subclass QWidget, then do I need to
reimplement all the button functionality?

 

thanks,

Danny

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100713/2ace3953/attachment.html>


More information about the PyQt mailing list