[Qt-components] QtQuick Desktop Components: How to make TableView to scroll to end on update?

nib952051 nib952051 at gmail.com
Tue Jan 15 11:49:00 CET 2013


HI!
Maybe this will help you:

    Binding {

        target: table

        property: "currentIndex"

        value: model.length - 1

    }



On Tue, Jan 15, 2013 at 11:12 AM, <sergey.eliseev at nokia.com> wrote:

> Hello,
>
> I need a TableView to scroll to end when model is updated. In QML ListView
> I achieve this by calling positionViewAtEnd() in ListView.onAdd signal
> handler in delegate. Same approach does not work for me in Component's
> TableView. What is correct place & time to call positionViewAtEnd() in
> TableView?
>
> Thank you in advance!
>
> p.s. I'm using Qt 4.8
>
> Best Regards,
>  Sergei
> _______________________________________________
> Qt-components mailing list
> Qt-components at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-components
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-components/attachments/20130115/6e428c60/attachment.html 


More information about the Qt-components mailing list