[Qt-interest] How to make a dialogue box with scroll bars?
Robert Wood
robert.wood at apostrophe.co.uk
Thu Mar 24 12:18:52 CET 2011
On 23/03/11 23:21, Tony Rietwyk wrote:
> I created the attached by these steps in 4.6.0 designer:
>
> - Create the dialog
> - Drag a scroll area onto the dialog
> - Set the dialog layout to vertical
> - Drag a frame onto the scroll area widget
> - Set the scroll area layout to vertical (which actually sets it on the
> internal scroll area widget).
> - Dragged several buttons onto the frame
> - Changed their minimum height to 100
> - Set the frame layout to vertical
>
> Voila!
>
> Hope that helps,
>
> Tony
Hi Tony,
That looks like the sort of thing I am after, thanks! Am frustrated to
say that I can't even work out how to set the layouts to be "vertical".
I can see things like "Vertical Policy" in the "size Policy" setting.
Problem with setting that is there is no way to stretch anything to
place the nine rows of five buttons!
I'm obviously missing something and don't understand what setting area
layouts be vertical means.
Thanks again,
Rob
More information about the Qt-interest-old
mailing list