[PyQt] best practices for MDI app

Lic. José M. Rodriguez Bacallao jmrbcu at gmail.com
Fri Jul 16 05:08:48 BST 2010


and how do I add QDockWidgets to a custom widget to get the desired behavior?

On 7/15/10, Mark Summerfield <list at qtrac.plus.com> wrote:
> On 2010-07-15, Lic. José M. Rodriguez Bacallao wrote:
>> as dock widgets can only be placed in a main window, can I make an
>> internal main window as central widget of my main application windows
>> and then treat dock widgets in the central main window widget as my
>> display windows? this central main window doesn't have any central
>> widget at all. is this ok?
> [snip]
>
> It will probably work but I would consider it to be poor practice.
> Personally I'd create a custom QWidget subclass with exactly the desired
> behaviour rather than abuse a standard Qt widget:-)
>
> --
> Mark Summerfield, Qtrac Ltd, www.qtrac.eu
>     C++, Python, Qt, PyQt - training and consultancy
>         "Advanced Qt Programming" - ISBN 0321635906
>             http://www.qtrac.eu/aqpbook.html
>


-- 
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------


More information about the PyQt mailing list