I’ve tried asking this on Reddit and the official Qt forums because this is more of a general Qt/QML question and not about Silica, but I’m not getting useful responses. Usually an indication that I am fundamentally holding “it” wrong, but anyway…
(Also note before providing answers that I’m not working on an open-source app.)
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 with QT.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.
Is my assumption correct that when returning to the initial LV it should have remembered its scrolling position?