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. GridView reuse pool
Forum Updated to NodeBB v4.3 + New Features

GridView reuse pool

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 423 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
    ckielwein
    wrote on 9 Aug 2021, 09:12 last edited by
    #1

    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?

    1 Reply Last reply
    1
    • J Offline
      J Offline
      jeremy_k
      wrote on 10 Aug 2021, 05:51 last edited by
      #2

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

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      1

      1/2

      9 Aug 2021, 09:12

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved