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

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

XMLWordPrintable

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

      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();
      };
      

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

            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

              Created:
              Updated:

                There are no open Gerrit changes