:: Re: [DNG] Qt 5 Designer question ab…
Inizio della pagina
Delete this message
Reply to this message
Autore: aitor
Data:  
To: dng
Oggetto: Re: [DNG] Qt 5 Designer question about layouts and textboxes
Hi Marc,

On 7/7/25 2:02, Marc Shapiro via Dng wrote:
> It works fine, but resizing the screen does not reposition and resize
> the individual widgets.


<snip>

> What do I need to do, either to the textboxes before I apply the
> layout, or to the layout after application, to get the textboxes to
> keep their original size (like every other control seems to) and yet
> resize when the program is running and I resize the window?


You first talk about widget's behaviour when you resize the screen, and
later you talk about resizing the window. I suppose that you are
referring to the latter. All the same, I guess that you need to set a
minimum size for the widgets (both vertical and horizontal) and then use
the *sizePolicy* attribute, setting it to *Expanding* or
*MinimumExpanding* other than *Fixed* (again for both vertical and
horizontal sizes).

HTH,