[PySide] QToolBox - how to resize current item to avoid scrollbar?

Frank Rueter frank at ohufx.com
Thu Sep 22 01:10:02 CEST 2022


Look slike it's not possible
https://forum.qt.io/topic/68211/initial-size-of-qtoolbox-is-not-suitable-for-its-content/11

Sigh, I guess I will refactor everything.


On Thu, Sep 22, 2022 at 11:05 AM Frank Rueter <frank at ohufx.com> wrote:

> Hi all,
>
> Qt seems to keep throwing curve balls at me on this project hwn eI least
> expect them.
> In a QToolbox wow can I make sure that the height of the current index is
> adjusted so that the contained widget is always fully visible (no scrolling
> required)?
> I tried setting fixed sizes and size policies on the widget but that is
> ignored by QToolBox.
> I can't find any controls for this anywhere.
>
> Any ideas?
>
> Cheers,
> frank
> [image: image.png]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220922/cbab5c0c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5391 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20220922/cbab5c0c/attachment.png>


More information about the PySide mailing list