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

TapHandler.onTapped always return a position of 0,0

    XMLWordPrintable

Details

    • 9b01e2e5d4b38533f02ba9ba907505e8c341cd0a (qt/qtdeclarative/5.12)

    Description

      The following example always prints out "qml: QPointF(0, 0)", no matter where you tap.

      Window {
          width: 1280
          height: 720
          visible: true
      
          Rectangle {
              anchors.fill: parent
              TapHandler {
                  onTapped: print(point.position)
              }
          }
      }

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes