[Qt-qml] Anchoring of elements in Row or Column
Alan Alpert
alan.alpert at nokia.com
Tue May 18 11:39:27 CEST 2010
Tirsdag 18. mai 2010 19:08:58 skrev ext Gregory Schlomoff :
> Try something along the lines of secondElement.x = firstElement.x +
> firstElement.width
>
> Using left and right as you suggested would definitely look more elegant,
> but it doesn't work, don't ask me why.
>
> On May 18, 2010 8:32 AM,
> <Rakesh.Mutharaju at tieto.com<mailto:Rakesh.Mutharaju at tieto.com>> wrote:
>
> forgot to mention i am using "Repeater" in Row .,
>
> -rakesh
>
> ________________________________
> From: qt-qml-bounces at trolltech.com<mailto:qt-qml-bounces at trolltech.com>
> [mailto:qt-qml-bounces at trolltech.com<mailto:qt-qml-bounces at trolltech.com>]
> On Behalf Of Rakesh.Mutharaju at tieto.com<mailto:Rakesh.Mutharaju at tieto.com>
> Sent: Tuesday, May 18, 2010 9:29 AM
> To: qt-qml at trolltech.com<mailto:qt-qml at trolltech.com>
> Subject: [Qt-qml] Anchoring of elements in Row or Column
>
>
> Hello, Is there a possibility to anchors elements in Row or
> Column? Well, I am trying...
>
One problem you might be having is that you are trying to have three different
things control the x property - the Row, anchors, and setting it directly. You
should pick just one of these approaches, as only one will actually work at a
time and you might not know which one that is if multiple methods are fighting
for control.
--
Alan Alpert
Software Engineer
Nokia, Qt Development Frameworks
More information about the Qt-qml
mailing list