[Qt-qml] Anchoring of elements in Row or Column
Rakesh.Mutharaju at tieto.com
Rakesh.Mutharaju at tieto.com
Tue May 18 12:22:40 CEST 2010
Well, I tried the x position approach., i need to recalculate the x position for everyitem in the Row., as they are not connected (anchored i mean). This is adding complications.
If they were anchored it would be simple to set x and the items get to relative positions.
I mean is it possible to do this calculation in the background., lower level. Making it real "Quick " for developer
Ofcourse, now I that working for myself.
Cheers,
Rakesh
-----Original Message-----
From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of Alan Alpert
Sent: Tuesday, May 18, 2010 12:39 PM
To: qt-qml at trolltech.com
Subject: Re: [Qt-qml] Anchoring of elements in Row or Column
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.c
> om>] 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
_______________________________________________
Qt-qml mailing list
Qt-qml at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list