[PyQt] best practices for MDI app

Mark Summerfield list at qtrac.plus.com
Thu Jul 15 07:34:28 BST 2010


On 2010-07-14, Lic. José M. Rodriguez Bacallao wrote:
> how to view different windows at the same time using dock widgets?
> We are developing a medical image viewer and we need to have the
> possibility of viewing several images(series) at the same time. We
> have tried MdiAre but it doesn't work nicely with vtk and I don't like
> tab widgets.
[snip]

Dock widgets tend to be used for tool palettes so they are usually small
in comparison to overall window size. Also, they can only be placed
around the edges of the central area, so they are probably not ideal for
your purpose.

If you need to show a specific number of images (2, 3, 4) then a
horizontal splitter might suffice (or two horizontal splitters laid out
one above the other).


-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Programming in Python 3" - ISBN 0321680561
            http://www.qtrac.eu/py3book.html


More information about the PyQt mailing list