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. Slow deletion from QML TreeView
Forum Updated to NodeBB v4.3 + New Features

Slow deletion from QML TreeView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 310 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.
  • M Offline
    M Offline
    magicDM
    wrote on last edited by
    #1

    Example shows that deletion 500 items from QML TreeView takes ~10 seconds (on my PC), but for QML ListView the deletion is instant, widget QTreeView also relatively fast. My questions is:
    Why deletion from QML TreeView so slow, but for QTreeView is fast? What difference between implementations? Why TreeView available only on QtQuick.Controls 1.4, is it deprecated?

    sierdzioS 1 Reply Last reply
    0
    • M magicDM

      Example shows that deletion 500 items from QML TreeView takes ~10 seconds (on my PC), but for QML ListView the deletion is instant, widget QTreeView also relatively fast. My questions is:
      Why deletion from QML TreeView so slow, but for QTreeView is fast? What difference between implementations? Why TreeView available only on QtQuick.Controls 1.4, is it deprecated?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @magicDM said in Slow deletion from QML TreeView:

      Why TreeView available only on QtQuick.Controls 1.4, is it deprecated?

      Yes. The new TreeView is hidden behind a commercial/gplv3 license unfortunately: https://marketplace.qt.io/products/treeview

      Why deletion from QML TreeView so slow

      I don't know the exact reason, byt TreeView in general is known to be very slow, so it is not a surprise. If your view is relatively simple, you can replace TreeView with nested ListViews, it usually performs pretty well (but requires a lot of additional coding).

      (Z(:^

      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