Get scroll position of ScrollArea
Unsolved
QML and Qt Quick
-
How do I get the scroll position of a QtQuick2
ScrollArea
? I triedscrollArea.contentItem.y
andscrollArea.viewport.y
but both return 0 always.I think one solution might be to put a
Flickable
as theScrollArea
's child. Is that gonna solve the problem? Also to me that's a hack, any way that's not a hack?