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. Issue with listview that resets when scrolling
Forum Updated to NodeBB v4.3 + New Features

Issue with listview that resets when scrolling

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 280 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MEMekaniske
    wrote on last edited by MEMekaniske
    #1

    Hello,

    I have an issue with a listview that keeps resetting when I scroll.
    The first model row keeps the values, and so does the field that has focus, but all other rows lose their values

    Also it seems it only looses values when i scroll to far away from the row..

    I have read something about some "keep alive" settings for android, but never on PC?

    Anyone got a clue to what's happening?

    I'm currently testing the newest Qt 6 beta on windows.

    Thanks for any suggestions

    Kris

    S 1 Reply Last reply
    0
    • M MEMekaniske

      Hello,

      I have an issue with a listview that keeps resetting when I scroll.
      The first model row keeps the values, and so does the field that has focus, but all other rows lose their values

      Also it seems it only looses values when i scroll to far away from the row..

      I have read something about some "keep alive" settings for android, but never on PC?

      Anyone got a clue to what's happening?

      I'm currently testing the newest Qt 6 beta on windows.

      Thanks for any suggestions

      Kris

      S Offline
      S Offline
      sonicss
      wrote on last edited by
      #2

      @MEMekaniske could you list your code of the listview?

      M 1 Reply Last reply
      0
      • S sonicss

        @MEMekaniske could you list your code of the listview?

        M Offline
        M Offline
        MEMekaniske
        wrote on last edited by
        #3

        @sonicss found my issue, did not know I had to store the dynamic data I put into the listview. When i stored it in the model it survived scrolling.

        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