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

Invalid value of pressed property in ListView delegate

    XMLWordPrintable

Details

    • All
    • fcc3d346c8 (qt/tqtc-qtquickcontrols2/5.15)

    Description

      Steps to reproduce:

      1. Make finger touch on the list item about 300ms.
      2. Make very short shifting of the finger during touch release. Please control distance of the shift it should be very short to avoid a scroll of the list view.

      Expected behavior:

      1. The list item delegate shouldn't have "pressed" state. The background color must correspond to "normal" state.
      2. The log should contain the track: "onPressedChanged true".

      Observed behavior:

      1. The list item delegate keeps the "pressed" state.
      2. There aren't tracks about "pressed" property changing.

      Note:

      1. This scenario is applicable only for touch screen and finger touch, in the same time it works as expected for the mouse.
      2. The problem is reproduced only if "interactive" and "pressDelay" properties are set simultaneously in a ListView component.
      3. Please find sources of example and video in attachment.

      Attachments

        1. ListView_Sources.rar
          5 kB
          Alexander Zaikin
        2. ListView_With_QtPatch.mp4
          1.19 MB
          Dmitry Kurdin
        3. ListView_Without_any_patches.MOV
          1.73 MB
          Dmitry Kurdin
        4. Microsoft Windows Simulator 2022-08-29 23-41-40.mp4
          742 kB
          Dmitry Kurdin
        5. Microsoft Windows Simulator 2022-08-30 16-17-23.mp4
          270 kB
          Dmitry Kurdin
        6. Microsoft Windows Simulator 2022-09-02 10-15-14.mp4
          644 kB
          Dmitry Kurdin
        7. VID_20220325_122344.mp4
          10.65 MB
          Alexander Zaikin

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              alexander.zaikin Alexander Zaikin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes