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

TapHandler.onTapped always return a position of 0,0

    XMLWordPrintable

    Details

    • Commits:
      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

        For Gerrit Dashboard: QTBUG-76871
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            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