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

point.pressed is not set to false when MultiPointTouchArea is set visible false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.2
    • 5.3.2, 5.4.0 RC
    • None
    • Android 4.4
    • Android
    • fb15206453faa8db26feb197dac3d16a8d6dfa1b

    Description

      If i press a finger, then uncheck the checkbox, the touch area will become invisible, then i release the finger, the point1.pressed stays true.

      It stays true even after re-checking the box.

      import QtQuick 2.3
      import QtQuick.Window 2.1
      import QtQuick.Controls 1.0
      import QtQuick.Controls.Styles 1.0
      
      Window {
          visible: true
          width: 1024
          height: 768
      
          MultiPointTouchArea {
              visible: checkBox1.checked
              anchors.leftMargin: 218
              anchors.fill: parent
              touchPoints: [
                  TouchPoint {
                      id: point1
                      onPressedChanged: console.log("onPressedChanged " + pressed)
                  }
              ]
          }
      
          CheckBox {
              id: checkBox1
              x: 23
              y: 24
              text: qsTr("Check Box")
              checked: true
          }
      }
      

      Attachments

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

        Activity

          People

            smd Jan Arve
            bruno deligny Bruno Deligny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes