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. The Listmodel is not efficient enough
Forum Updated to NodeBB v4.3 + New Features

The Listmodel is not efficient enough

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 878 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.
  • C Offline
    C Offline
    cokefish
    wrote on last edited by
    #1

    When the ListElement amount exceed 600, the Listmodel seems slow.

    [edit: fixed typo in title, eddy]

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Can you elaborate on your use case? Some code on how you are using the ListModel?

      If you give more information, it's easier for us to help you.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cokefish
        wrote on last edited by
        #3

        I need a list with such feature

        1. The data background should be dynamic increase from from the bottom
        2. The items in view should be grouped by category
        3. The group title item could be expanded/collapsed to show/disappear the items
        4. The highlighted item could be adjust when expanded/collapsed occurs

        I used javascript code to be the engine to update the data model of ListModel object.
        It could be very fast at the very beginning, however when the data about exceed 600, it always costs about 1 second on my device(An CortexA8 device).
        At that period, I nearly could not move my mouse at all.

        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