Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.11.0 Beta 1, 6.5.4, 6.7.2
Description
If currentIndex is set to 1 initially and wrap is disabled, it automatically selects some other item, probably based on the initial view position:
import QtQuick 2.10 import QtQuick.Controls 2.3 ApplicationWindow { id: window visible: true width: 600 height: 440 title: "contentY: " + view.contentY.toFixed(2) + ", originY: " + view.originY.toFixed(2) + ", currentIndex: " + view.currentIndex property Item view: tumbler.contentItem.children[0] Tumbler { id: tumbler model: 30 currentIndex: 1 anchors.fill: parent anchors.margins: 20 wrap: false visibleItemCount: 7 } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-127315 Tumbler's currentIndex is not the same as the initial value
- Closed
- relates to
-
QTBUG-39146 Setting ListView currentIndex doesn't set initial item correctly in certain circumstances
- Closed
-
QTBUG-66799 Tumbler: displacement calculation goes wrong if wrap is disabled and tumbler gets resized
- Closed
For Gerrit Dashboard: QTBUG-66801 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
440697,3 | ListView: Make SnapMode respect StrictlyEnforceRange highlight mode | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |