[Interest] QML ScrollView, programmatic scroll?

Harri Pasanen harri at mpaja.com
Mon Jan 12 15:14:52 CET 2015


Trying now, I get:

Error: Cannot assign to non-existent property "contentY"



On 12/01/2015 15:08, Dmitry Volosnykh wrote:
> Did you try flickable.contentY = 0?
>
> On Mon, Jan 12, 2015 at 5:06 PM, Harri Pasanen <harri at mpaja.com 
> <mailto: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 <mailto: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/36ca48f1/attachment.html>


More information about the Interest mailing list