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

"pressDelay" not working as expected on Android

XMLWordPrintable

    • Android

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            cajus Cajus Pollmeier
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes