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

wrong local position of QNativeGestureEvent inside QQuickWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.6.2, 5.7.1
    • QPA
    • None
    • Mac OS X Sierra 10.12.3
    • macOS

    Description

      1) add QQuickWidget to the MainWindow
      2) implement "event" method to catch QNativeGestureEvent
      3) call QNativeGestureEvent::pos();

      expected result: pos is the same as for QMouseEvent for this widget
      actual result: local pos is not in QQuickWidget coordinates

      example application output:
      mouse pressed on pos QPoint(5,3)
      native gesture pos QPoint(232,120)

      details:
      call QQuickWidget::mapFromGlobal(QNativeGestureEvent::globalPos) works as expected

      Attachments

        1. Archive.zip
          5 kB
          Konstantin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            ctin Konstantin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes