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

Touch to mouse events can have wrong coordinates when filtered from children

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.5.0 Beta
    • None

    Description

      if I have an item (easily reproduceable with a C++ element) that filters child mouse events that contains a Flickable, when the Flickable content position is not at 0,0 the filtered events arrive with a different position depending it's a real click or a synthesized one from touch events, in that case the click event arrives with a local position relative to the Flickable instead of being relative to the child item.

      attached is the smallest test case i could reproduce. It has a C++ element instead of a MouseArea, but the values arriving to it do indeed suggest there is a problem.
      A proposed patch is at https://codereview.qt-project.org/#/c/114424/

      Attachments

        1. touchbug.tar.bz2
          4 kB
          Marco Martin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            notmart Marco Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes