ListView as initial item of StackView (scrolling)
Unsolved
QML and Qt Quick
-
I have been having a hell of a time using a ListView (LV) as the initial item of a StackView (SV) and the LV remembering its scrolling position.
No reproducable example yet since I'm working on a bunch of assumptions that I am not sure are true and I want to check that first.
This is with Qt 5.15.
I am using QML with LQML. In my main QML file I create a StackView with a ListView child and set that LV as its initial item. There's many items in the LV so it scrolls. Whenever I select an item I
SV.push
a new QML file onto the stack withQT.resolvedURL
.When I do an
SV.pop
in the newly pushed page the main LV page is always reset to the top and not at its latest scrolling position when the push was done.