Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73325

StackLayout does not always update content on TabBar index change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.11.2, 5.12
    • Linux/Other display system

    Description

      I am using a TabBar in combination with a StackLayout.

      When clicking through the tabs, sometimes the StackLayout does not switch to the corresponding view.

      Instead, the TabButton appears selected, but not completely pressed. Pressing a second time, or clicking any other tab, causes the originally selected tab to be displayed.

      Sometimes it works fine initially then starts showing the bad behavior. If I leave it alone for a while, it often starts behaving correctly for a bit, but repeatably falls back to the bad behavior.

      The behavior is similar to what is described in these existing bugs (but I'm not using Flickables):

      • QTBUG-60357 TabBar/SwipeView sometimes not working correctly inside Flickable
      • QTBUG-59839 Touchpad: nested Flickables get stuck in pressed state on macOS
        • I see this same behavior: "...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."

       

      The attached QML file demonstrates the issue, but only on target hardware. Works fine on desktop.

      Attachments

        1. qtbug73325.zip
          2 kB
        2. qtbug73325-nitrogen6x.mp4
          1.41 MB
        3. qt-touch-protocol-b.patch
          2 kB
        4. TabBarDemo.qml
          2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jknox Josh Knox
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes