Qt World Summit: Register Today!

How to manage the QML list item

  • 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.

  • 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?

Log in to reply