Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ListView as initial item of StackView (scrolling)
Qt 6.11 is out! See what's new in the release blog

ListView as initial item of StackView (scrolling)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 422 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • aeriqueA Offline
    aeriqueA Offline
    aerique
    wrote on last edited by aerique
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved