Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to manage the QML list item
xhsoldier last edited by
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.
andre last edited by
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?