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. How to manage the QML list item
Forum Updated to NodeBB v4.3 + New Features

How to manage the QML list item

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

    My list is very big, and each list contains a icon, that means each list item is also not small.
    My question is How many items that QML list item support?(Must ensure the performance). For example, 100 items? each items is 2k bytes.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Why don't you just try and see?
      My guess: Qt support as much as your systems memory supports, up to int_max/2 items.

      Notice that your items do not actually need to be that big. Are all your icons different? If not, then you only need to keep them in memory once. Unless you do funny things, Qt will make sure of that for you.

      I think that if you start working with lists that big, you have a bigger issue to solve: how do you keep this thing usable for your users? How do you expect them to navigate that big list?

      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