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

Limit the number of events that are filtered through a gesture recognizer

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • 4.8.x
    • 3.x
    • Core: Event loop
    • None

    Description

      Most gesture recognizers are not interested in all event types, most of them are handling mouse and touch events (or possibly other user input events), hence we shouldn't even forward other event types to gesture recognizers.

      The proposal is to add a property to QGestureRecognizer that specifies which event groups the recognizer is interested in:

      enum EventGroup {
          AllEvents,
          MouseEvents,
          TouchEvents,
          KeyboardEvents,
      };
      class QGestureRecognizer {
          void setFilteredEventGroups(EventGroups events);
          EventGroups filteredEventGroups();
      };
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            dzyubenk Denis Dzyubenko (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes