[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 :
> Hi
> 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.
> http://vimeo.com/39561463
> 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.
>
> Junix
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
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.
--
Vincent V.V.
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...
Name: example.ui
Type: application/x-designer
Size: 2660 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120401/29526c00/attachment.bin>
More information about the PyQt
mailing list