Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.9.1
-
None
-
macos, arm64
-
fc0bf5a9f (dev)
Description
Since pretty recently, it became possible to edit c++-backed lists in qml. (Implement array methods for QQmlListProperty)
Using such editing for dynamically updating some parts of ui based on either model-view data or plug-in modules/ui code often crashe or does not work. See reproducers attached.
Instantiator { delegate: ..{} onObjectAdded: (index, object) => { container.property.splice(index, 0, object) } onObjectRemoved: ...
The qt code/commit in question tries to insert nullpointers without any reason, and most properties(qt github search cant handle and crash or discard (random) items.
On top of that, complexity is (more than)quadratic for list _slow fallbacks.
Proposed patches attached.
Attachments
Issue Links
- relates to
-
QTBUG-112949 splice does not work on list properties
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-137554 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
655630,4 | QtQuick: Optimize path element handling | dev | qt/qtdeclarative | Status: NEW | +1 | 0 |
655688,2 | Fix handling of animations in QQuickTransition | dev | qt/qtdeclarative | Status: NEW | +2 | 0 |
656946,1 | Templates: Disconnect menu bar items when clearing | 6.10 | qt/qtdeclarative | Status: NEW | 0 | 0 |