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. cache Buffer in ListView works only in one direction?
Forum Updated to NodeBB v4.3 + New Features

cache Buffer in ListView works only in one direction?

Scheduled Pinned Locked Moved QML and Qt Quick
listviewcachebufferflickable
2 Posts 2 Posters 1.3k Views 2 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.
  • F Offline
    F Offline
    Frime
    wrote on last edited by
    #1

    Hi together!

    I developed a customized Scroll-Bar for ListViews, which is using the contentY / contentHeight / originY Properties.
    The ListView has cacheBuffer enabled, but the buffering works - via setting contentY property - only in one direction. When the new contentY value is higher than the old one (down scrolling), i can follow the creation of delegates outside the visible viewport area via debug messages. But if i scroll upwards (setting a lower contentY value as before) then no Delegates will be prealoaded.
    In consequence, my ListView can scrolling down nice and fluid but upscrolling is really juddery (low performance arm devicer).

    If i use the flick gesture to scroll, the preloading works perfectly in both directions. But in this case, the interactive property has to be set to false.

    So: Is there any other property as contentY to scroll the content of a ListView manually? Any suggestions or proposals are welcome!

    Thanks in advance,
    Frime

    p3c0P 1 Reply Last reply
    0
    • F Frime

      Hi together!

      I developed a customized Scroll-Bar for ListViews, which is using the contentY / contentHeight / originY Properties.
      The ListView has cacheBuffer enabled, but the buffering works - via setting contentY property - only in one direction. When the new contentY value is higher than the old one (down scrolling), i can follow the creation of delegates outside the visible viewport area via debug messages. But if i scroll upwards (setting a lower contentY value as before) then no Delegates will be prealoaded.
      In consequence, my ListView can scrolling down nice and fluid but upscrolling is really juddery (low performance arm devicer).

      If i use the flick gesture to scroll, the preloading works perfectly in both directions. But in this case, the interactive property has to be set to false.

      So: Is there any other property as contentY to scroll the content of a ListView manually? Any suggestions or proposals are welcome!

      Thanks in advance,
      Frime

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @Frime,
      Can you post a minimal compilable example which will show the problem ?

      157

      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