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 Performance
Forum Updated to NodeBB v4.3 + New Features

ListView Performance

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 2.0k 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.
  • DonCoderD Offline
    DonCoderD Offline
    DonCoder
    wrote on last edited by
    #1

    Problem statement: working with huge data with list impacting performance
    Use case: Need to display list of songs list which has around 10000 element Data
    I have model implemented in QT/C++ that has data which is huge

    List view and delegate component implemented in QML where list view shows 10 elements at a time

    Now consider that when user scrolls from first element to last [10000th element] , this causes all 10000 delegate components getting created, of course even it will get destroyed as well based on the current list data scrolling.

    Now it is impacting the application to consume more CPU cycles as this operation caused huge UI creation & destruction.
    even cachebuffer does not solve the problem.
    element generation that enhance application performance.

    So is there any similar way in QT...?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Do you use lazy initialization? (canFetchMore() and fetchMore())
      Have you taken care of the hints from ListView documentation? The docs also list other performance considerations: well worth reading.

      Do you see any performance issues, actually? If so - where: in scrolling or loading? Or you only anticipate them?

      (Z(:^

      1 Reply Last reply
      1

      • Login

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