[PyQt] Preview does not resize layouts
Hans-Peter Jansen
hpj at urpla.net
Tue Jan 17 21:42:13 GMT 2017
On Dienstag, 17. Januar 2017 11:25:25 Rich Shepard wrote:
> On Tue, 17 Jan 2017, Hans-Peter Jansen wrote:
> > Okay, last time. If you will not get this by now, I will have to confess,
> > that I'm incapable to explain this to you. Follow by the letter, please.
>
> Pete,
>
> I had totally overlooked the need for a vertical layout inside each tab
> as a container for all widgets. Mea culpa!
Glad, you finally got it.
> What's interesting is that the vertical layout does not display in the
> Objet Inspector under the Contacts tab, but does on the others.
Nope, the container widgets (QWidgets) contain an implicit layout, that you can find as a
separate *property* section. The layout type is shown with the icon as well! They will come
to life, when you e.g. generate python code from the UI with pyuic..
The layouts *below* the container widgets are the nested (explicit) layouts containing the
widgets. For contacts, that's gridLayout, all others have nested vertical layouts
(verticalLayout_2, verticalLayout_4, ...)
Cheers,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170117/0e817a43/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bild
Type: image/png
Size: 62645 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170117/0e817a43/attachment-0001.png>
More information about the PyQt
mailing list