GridView reuse pool
-
Hi,
ListView and TableView both have an option for a reuse pool of delegates.
(https://doc.qt.io/qt-5/qml-qtquick-listview.html#reuseItems-prop, https://doc.qt.io/qt-5/qml-qtquick-tableview.html#reuseItems-prop)As far as I can see, GridView does not.
Is there a specific reason for GridView not providing this option?I am working on an application which uses a fairly large gridview and currently scrolling is bottlenecked by creation of delegates.
In the past we used a tableview to mititgate this issue, but I'd much prefer to use a gridview.
Is there a simple way to implement a reuse pool myself? -
@ckielwein said in GridView reuse pool:
Is there a simple way to implement a reuse pool myself?
Leveraging the Component.completed and Component.destruction signals to reparent expensive delegate internals should work. It may take some effort to prevent bindings in pooled instances from wreaking havoc, but that seems to be a concern for the ListView and TableView implementations too.