Get scroll position of ScrollArea



  • How do I get the scroll position of a QtQuick2 ScrollArea? I tried scrollArea.contentItem.y and scrollArea.viewport.y but both return 0 always.

    I think one solution might be to put a Flickable as the ScrollArea's child. Is that gonna solve the problem? Also to me that's a hack, any way that's not a hack?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.