But this works for my example below:
flickable.flickableItem.contentY = 0
Thanks!
Harri
On 12/01/2015 15:14, Harri Pasanen wrote:
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 <ha...@mpaja.com
<mailto:ha...@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@qt-project.org <mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest