[Qt-qml] smooth scrolling using positionViewatIndex

Mark Tucker mark.tucker at airborne.aero
Tue Oct 4 16:38:03 CEST 2011


Hello,

 

I have had precisely the same problem when trying to implement "paged"
navigation on a ListView - I've had to work around it by directly
modifying the ContentX/Y, which I know is not recommended, but it's the
only way I know of achieving such an effect.

 

As far as I am aware, it's not possible to specify an animation to
happen when you use positionViewAtIndex (which I actually consider to be
an oversight).

 

Though if anyone else can tell me that I'm wrong, I'd be more than happy
to hear your solution :)

 

Thanks

 

Mark T

 

From: qt-qml-bounces+mark.tucker=airborne.aero at qt.nokia.com
[mailto:qt-qml-bounces+mark.tucker=airborne.aero at qt.nokia.com] On Behalf
Of Bartosh Wroblevksy
Sent: 04 October 2011 11:42
To: qt-qml at qt.nokia.com
Subject: [Qt-qml] smooth scrolling using positionViewatIndex

 

Hi,
I apologize in advance if this is in the documentation. I wanted to know
if it is possible to apply a NumberAnimation effect when using
positionViewAtIndex on a GridView. I would like to have something like
this
Behavior on ContentY {
         NumberAnimation { duration:1000 )
}
 
The problem is that even if the method positionViewAtIndex modifies
ContentY, the above lines that specify it's behavior have no effect. 
Thanks,
Bartosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111004/fe24c1cd/attachment.html 


More information about the Qt-qml mailing list