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

"pressDelay" not working as expected on Android

    XMLWordPrintable

Details

    • Android

    Description

      If you run

      import QtQuick
      import QtQuick.Controls.Material
      
      Window {
          id: win
          width: 640
          height: 480
          visible: true
          title: "Sandbox"
      
          ListView {
              id: view
              anchors.fill: parent
              anchors.margins: 5
              spacing: 5
              pressDelay: 500
              model: 42
      
              delegate: CheckBox {
                  text: 'Item #' + (index + 1)
                  anchors {
                      left: parent?.left ?? undefined
                      right: parent?.right ?? undefined
                  }
      
                  required property int index
              }
          }
      }
      

      , you'll notice that pressDelay doesn't send a pressed/released when the CheckBox/Button/whatever is released within the pressDelay. Instead, you have to press the CheckBox until pressDelay is expired in order to tick the box.

      This behaves correctly on other platforms.

      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
            cajus Cajus Pollmeier
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes