Unsolved Slow deletion from QML TreeView
-
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? -
@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).