Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.0, 6.3.2
-
d9f9d773e92940786f159897623618f3bf6bcf0f (qt/qtdeclarative/dev) 27b0d193f6c9e320638cd0c19414a78c9caeee72 (qt/qtdeclarative/6.2) 4cf8b6732a627cc73d22c95bd080dba447afb2e3 (qt/tqtc-qtdeclarative/5.15), 9124fcecb (dev), 058787ce5 (6.5), 59b4159eb (6.4)
Description
Please refer to the attached sample that demonstrates that the "ListView.isCurrentItem" attached property is not available in a delegate of a DelegateModel until user presses a key to refresh the model.
Setting model in component.onComplete of ListView solves this issue, but Binding of model with listview is broken and it won't work with a model coming from a property.
Attachments
Issue Links
- relates to
-
QTBUG-88065 ListView: currentItem stays null if model gets update during delegate creation
- Reported
-
QTBUG-39146 Setting ListView currentIndex doesn't set initial item correctly in certain circumstances
- Closed
- resulted in
-
QTBUG-97423 heap-use-after-free in SwipeView::test_orientation
- Closed
-
QTBUG-98315 Odd issues with ListView scrolling
- Closed
-
QTBUG-98529 REG: QQuickDialogButtonBox: Crash when modifying standardButtons more than once
- Closed
For Gerrit Dashboard: QTBUG-86744 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
343646,5 | Fix ListView.isCurrentItem when used with DelegateModel | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
373921,2 | Fix ListView.isCurrentItem when used with DelegateModel | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
373922,3 | Fix ListView.isCurrentItem when used with DelegateModel | 6.1 | qt/qtdeclarative | Status: ABANDONED | +2 | 0 |
374028,3 | Fix ListView.isCurrentItem when used with DelegateModel | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
448438,8 | Fix ListView.isCurrentItem for DelegateModel, take 2 | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
449487,2 | Fix ListView.isCurrentItem for DelegateModel, take 2 | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
449488,2 | Fix ListView.isCurrentItem for DelegateModel, take 2 | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
449490,3 | Fix ListView.isCurrentItem for DelegateModel, take 2 | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |