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

Flickable.pressDelay causes buttons to not click

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.10.1
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      QtQuick 2.9
      QtQml 2.2

      Compiler: GCC
    • Platform/s:
      Linux/Wayland

      Description

       

      In the layout defined in the following code, if I press the button via the touchscreen, it registers the "pressed" property is set to 'true', but it does not change back to 'false' when I lift my finger, (and the clicked signal is never emitted). If I use a mouse, however, the button clicks correctly. 

      If I remove the "pressDelay" line, then the button behaves correctly.

      Flickable {
          width: 400
          height: 500
          pressDelay: 1
      
          Button {
              width: 400
              height: 100
              onClicked: print("this is never printed")
          }
      }
      

      If I replace the Button with a MouseArea, then presses are handled correctly.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              paulw Paul Wintz
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes