[PyQt] Organize the components in window (Qt-Designer)
Vincent Vande Vyvre
vincent.vandevyvre at swing.be
Sun Apr 1 08:34:15 BST 2012
Le 01/04/12 05:57, Alfredo Junior a écrit :
> I'm creating a Mame(mamedev.org) Front-end in PyQt4 and using Qt-Designer to build my windows.
> This (Qt-Designer) is a little bit new to me and I have a problem to manage the layout components in the window.
> As you can see in a video below, I can't organize the components into the window.
> I don't know how to do, because the vertical/horizontal layout there are not some property as max. size, for example.
> I'm not sure if by the video I came to my goal to show you the exactly that I need.
> Thanks for advance.
> PyQt mailing list PyQt at riverbankcomputing.com
You must use size policy in your's widgets and place your verticalLayout
and QGraphicsWidget into a horizontalLayout before set the final gridLayout.
Joined an example with the same widgets, take a look at the size policy.
Oqapy <https://launchpad.net/oqapy> . Qarte+7
<https://launchpad.net/qarte+7> . PaQager <https://launchpad.net/paqager>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2660 bytes
Desc: not available
More information about the PyQt