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

TapHandler needs a margin property (be able to press outside the parent Item's bounds)

    XMLWordPrintable

Details

    • da722fb448f06cf43780e6f857a1ccd9f07176d6

    Description

      This is convenient for Fitts's Law compliance: if you have placed a button on some sort of panel near the edge of the screen, you should be able to press the button even when the mouse cursor is exactly at the edge of the screen.

      So far our answer has been that you can make another (invisible) Item with appropriate bounds, just to host the TapHandler. But that takes more memory and is less convenient.

      The danger with adding a single "margin" value is that next, people may start asking for it to have separate margins on all 4 sides. That might be a waste of memory, given that most handlers don't need them; but adding a single qreal property is not as bad.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes