[Qt-qml] Positioner reordering children

alan.alpert at nokia.com alan.alpert at nokia.com
Fri Oct 22 07:25:21 CEST 2010


> -----Original Message-----
> From: qt-qml-bounces at trolltech.com [mailto:qt-qml-
> bounces at trolltech.com] On Behalf Of ext Colin Kern
> Sent: Tuesday, October 19, 2010 1:56 PM
> To: qt-qml at trolltech.com
> Subject: Re: [Qt-qml] Positioner reordering children
> 
> On Mon, Oct 18, 2010 at 10:14 PM, Colin Kern <colin.kern at gmail.com>
> wrote:
> > I see that Positioners have add and move events, but from reading the
> > documentation it only mentions the move event being used when an item
> > is added or removed. Is there a way to reorder items and have it
> > animated, or is this something I'd have to implement myself?
> 
> I ended up doing my own implementation, but I'd still like to know if
> there's a built-in way.  

There is no built-in way. The Positioners are deliberately very lightweight and simple, and do not manage any ordering themselves. So they do not even have the concept of reordering items, let alone animating it. The correct solution for now is to, as you have done, create your own implementation solving your specific use case.

--
Alan Alpert
Software Engineer
Nokia, Qt Development Frameworks




More information about the Qt-qml mailing list