[Qt-qml] PathView moving property when the index changes

Artem Marchenko artem.marchenko at gmail.com
Sun Oct 9 02:23:52 CEST 2011


Hi David

When you navigate between list items programmatically, the move always takes highlightMoveDuration ms (well, at least if highlightRangeMode is StrictlyEnforceRange).

I am not sure if you can get a signal for the end of movement though. As a workaround you could have a timer for highlightMoveDuration ms.

Best regards,
Artem.

On Oct 8, 2011, at 4:52 PM, David Cordero wrote:

> Hi all,
> 
> I am checking the documentation of the qml component PathView and It has properties and signals for detecting when the user stops the movement. But it doesn't work when the pathview ends the animation because of an incrementCurrentIndex or decrementCurrentIndex functions.
> 
> As pathview index can't be managed automatically by the component and you have to capture Left and Right key for doing it:
> 
>         Keys.onPressed : {           	        
>     	    if (event.key == Qt.Key_Left) 
>     	    	decrementCurrentIndex()    	    	    	    
>     	    if (event.key == Qt.Key_Right) 
>     	    	incrementCurrentIndex()
>     	    }
> 
> 
> ¿How can I know when the movement of the pathview ended when using keys instead of mouse events?
> 
> -- 
> David Cordero 
> <david at corderoramirez.es>
> 
> 
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111009/b1cf1752/attachment.html 


More information about the Qt-qml mailing list