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

Pointer Handlers should expose the current pointer type

    XMLWordPrintable

Details

    • All
    • 6215a53f2 (dev), 352c1e124 (6.5), 404e54c03 (tqtc/lts-6.2), 8ea6284bb (6.4)

    Description

      It's very cool that you can select to which pointer device(s) an handler should respond using the accepted* properties, but I'd still like to reveive the actual values for these properties belonging to the current event. 

      If you only want a slightly different reaction based on the pointer type (adjust a margin perhaps, change an icon next to the visualized touch point, or change the placement of something you drag in respect to the point because a finger covers the touch screen, or...) it is beneficial to re-use the same handler instead of defining a whole list of them which share 90% of their content but ony set one different item. 

      So, I think these values should be exposed in some way. I guess the best way would be to expose them as as a set of current* properties mirroring the accepted* properties that control what is reacted to. 

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes