ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #07417
Re: Is there an equivalent to Layout.columnSpan available on Ubuntu Touch?
Being that I couldn't find something equivalent to Layout.columnSpan,
I decided to break the Page layout's one grid
into 3 grids.
grid1 with 2 columns
grid2 with 1 column
grid3 with 2 columns.
When I tried it, it placed all three grids at the top left on top of
each other. To resolve this,
grid1
id: grid1
grid2
id: grid2
y: grid1.height
grid3
y: grid1.height + grid2.height
That fixed it and gave the desired layout.
On 03/31/2014 09:17 AM, David Marceau wrote:
> I have a 2-column grid. I would have like to take a label and span it
> two columns, then follow it with the datepicker which would also span
> two columns.
>
> Using qt layouts, I would:
> import QtQuick.Layouts 1.1
>
> then within the grid, I would:
> Layout.columnSpan: 2
>
> I attempted to do the same on Ubuntu Touch but it didn't compile/run.
>
> Any suggestions? I see a great emphasis on anchors. Is this the only
> way to do this stuff at present?
>
> Thanks in advance.
>
>
References