[Interest] QML ScrollView, programmatic scroll?

Dmitry Volosnykh dmitry.volosnykh at gmail.com
Mon Jan 12 15:08:32 CET 2015


Did you try flickable.contentY = 0?

On Mon, Jan 12, 2015 at 5:06 PM, Harri Pasanen <harri at mpaja.com> wrote:

> Hi,
>
> Is the a way to set the ScrollView scroll amount?
> Actually, for me going to beginning would suffice at this point.
>
> I have something like below
>
>      ScrollView {
>          id: flickable
>          anchors.fill: parent
>
>          Text {
>              id: webView
>              text: html
>              textFormat: Text.RichText
>              wrapMode: Text.Wrap
>              onLinkActivated: {
>                  text = "new long contents here, would like should be
> visible from the top"
>              }
>          }
>      }
>
> Now when a link is clicked and user has already scrolled down, the
> new contents also appear as if already scrolled.
>
> Any hints?
>
> Harri
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150112/50167bd0/attachment.html>


More information about the Interest mailing list