Ah, so your problem is proper animation when you insert something to the model.

I wouldn't recommend using positioners for it as there isn't any control for new delegate addition (or I don't know about one). And if you are calculating coordinates manually anyway, you don't get any benefits from Rows/Lists anyway. 

You can use just a Rectangle and Repeater. Have a look at http://pastebin.com/FNgk650T
Click blue rectangle for moving element up-down as you want.
Click red rectangle for inserting element to the model.
Animations and margins seem to be fine.


BR,
Artem.

On Aug 8, 2011, at 12:05 AM, Shaun Reich wrote:

Any chance for a sketch of what you are trying to get?

The code sample in the wiki provides what I'm trying to go for, and it
works great when the model's data is not changed but there's just so
much bugginess surrounding it when you change the model's contents.
And due to the fact that when the model's data changes, it looks like
the index changes for a brief second, just enough to flicker back and
forth for a second.

Seeing as I achieved a similar effect with a repeater, without the
bugs associated with using a listview or a row + repeater -- how could
I manually position the repeaters contents without using any kind of
anchor solution. Because apparently as soon as anchors of any kind are
thrown into the picture, the positioning turns to crap. I can't
believe that nobody else has run into anything like this...I didn't
think it was all that special of a scenario...

--
Shaun Reich,
KDE Software Developer (kde.org)

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to