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

[regression] Modifier keys are not recognized when scrolling with mouse wheel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.0.2, 5.1.0
    • None
    • OS X 10.8

    Description

      If you press a modifier key and scroll with a mouse wheel the modifier key is not recognized.
      It's working with a touchpad like the "Magic Trackpad".
      It doesn't matter if one or more input devices are connected
      It was working in Qt 4

      To check this behavior you can overwrite the wheelEvent function of a QWidget like this:

      void wheelEvent(QWheelEvent *event) {
          if (QApplication::keyboardModifiers() & Qt::ShiftModifier) {
              printf("shift + ");
          }
          if (event->modifiers() & Qt::ControlModifier) {
              printf("ctrl + ");
          }
          if (event->modifiers() & Qt::AltModifier) {
              printf("alt + ");
          }
          if (event->modifiers() & Qt::MetaModifier) {
              printf("meta + ");
          }
          if (event->modifiers() & Qt::NoModifier) {
              printf("no modifier + ");
          }
          static int tmp = 0;
          printf("scrolling %d\n", tmp);
          tmp++;
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-32098
        # Subject Branch Project Status CR V

        Activity

          People

            richard Richard Moe Gustavsen
            sebastianr Sebastian Reimann
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes