-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.3, 5.10.0
-
None
-
0e64bd96fbf26855a65e38847083dbd2c6bee4ac
Sometimes we get to crashes if the objects item is passed back to C++.
Something like would crash as forwardTo will have stored dangling pointers when the ListView decides to clear delegates in some occasions.
ListView {
header: TextField { id: filter }
model: SomeModel { filter: filter.text }
Keys.forwardTo: [currentItem]
}
Related bug reports in our bugzilla:
https://bugs.kde.org/show_bug.cgi?id=381814
https://bugs.kde.org/show_bug.cgi?id=389168
(and duplicates)
It always refers to this forwardTo sending events to objects that don't exist anymore.
Patch follows.
| For Gerrit Dashboard: QTBUG-65881 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 217395,3 | QQuickItemView::currentItemChanged called upon currentItem destruction | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |