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

SwipeView does not update when setting currentIndex from pressAndHold signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.0, 5.12.1
    • Quick: Controls 2
    • None
    • Linux/X11, Windows

    Description

      Changing the currentIndex from within a button works for 'clicked' but not for 'pressAndHold'. In the latter case, the index is updated, but the visuals remain at the original page.

      To reproduce:
      1. Start the attached program

      2. Verify that the 'click' buttons advances to 1

      3. Use a 'PressAndHold' button to advance to 2

      Expected behavior: the swipe view navigates to the blue rectangle 2 and the currentIndex is updated.

      Observed behavior: the currentIndex property is updated, but the swipe view does not navigate to the next page.

      Attachments

        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
            koen.poppe koen.poppe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes