Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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