[Interest] Designer - grid layout
Phil
phil_lor at bigpond.com
Fri Feb 1 08:48:50 CET 2013
On 01/02/13 15:39, Tony Rietwyk wrote:
> Hi Phil,
>
> Several ways of doing this in Qt 4:
>
> 1)
>
> - Remove any layout in the container if present
> - Place the 9 edit boxes, roughly in line with each other
> - Apply the grid layout
>
> 2)
>
> - Remove any layout in the container if present
> - Add first edit box
> - Apply the grid layout
> - Add the other two edits for a row or column
> - Drag another edit box, a blue line should appear to add another row or
> column
> - Release the drag, the grid should create the extra row or column, with the
> edit box only occupying one cell
> - Drag in the other edit boxes, a red rectangle should appear in the
> unoccupied cells.
> - Repeat for the third row or column.
>
Thanks for the detailed explanation Tony,
A little more experimentation showed that I had to build the 3 x 3 grid
and then drag the grid layout over my edit box grid, which makes sense.
Unfortunately, and as previously, the edit boxes assume their full size
(112 wide x 23 high) and their "geometry" property is greyed out.
I'd like to have the edit boxes 25 x 25 in size without any spacing
between them.
--
Regards,
Phil
More information about the Interest
mailing list