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

Flickable.pressDelay causes buttons to not click

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.10.1
    • Quick: Controls 2
    • None
    • QtQuick 2.9
      QtQml 2.2

      Compiler: GCC
    • 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

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              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