Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.8.0, 5.9.0 Alpha, 5.15.2, 6.0.0, 6.7
-
None
-
macOS 10.12.2
Description
Observed behavior: If a user first does a touchpad multitouch swipe in a TextArea, and then clicks one of the tab buttons the SwipeView will not change. However, the tab bar button changes color to represent it's been clicked, and the currentIndex and currentItem are triggered and indeed do switch to the correct values. It seems like the view itself is not updated.
This only works with a multitouch swipe, and the proper behavior can be reestablished by clicking anywhere outside the field.
Expected behavior: when a tab button is clicked on, the swipe view changes.
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") SwipeView { id: swipeView anchors.fill: parent currentIndex: tabBar.currentIndex Page { Flickable { height: 100 width: 300 TextArea.flickable: TextArea { wrapMode: TextArea.Wrap text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " + "sed do eiusmod tempor incididunt ut labore et dolore magna " + "aliqua. Ut enim ad minim veniam, quis nostrud exercitation " + "ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. "; } } } Page { Label { text: "Page 2" } } } footer: TabBar { id: tabBar currentIndex: swipeView.currentIndex TabButton { text: qsTr("First") } TabButton { text: qsTr("Second") } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-60357 TabBar/SwipeView sometimes not working correctly inside Flickable
- Closed
- relates to
-
QTBUG-80236 ListView does not scroll with TouchPad
- Closed
-
QTBUG-73325 StackLayout does not always update content on TabBar index change
- Closed
-
QTBUG-57245 Nested flickables allow flicking with two fingers touchpad gesture only in one direction
- Closed