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

For the key event e.g. "Alt+g" modifiers Qt::AltModifier *and* Qt::MetaModifier are set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.1.1
    • 5.1.0 Beta 1
    • Core: Event loop
    • Ubuntu 12.10
      window manager awesome v3.4.13 (Octopus)
    • b212fc80a7be8877ddbdf99f95a4f7663293f551

      I've attached a demo application showing the issue. It prints the relevant modifiers for each incoming key press event:

      • Build and run
      • Position mouse cursor on the window
      • Hit "Alt+g". The output for Qt 5.1 Beta 1 (and at least up to sha1 a11c7ef) is:
      virtual void MyWidget::keyPressEvent(QKeyEvent*) 
      Qt::AltModifier 
      virtual void MyWidget::keyPressEvent(QKeyEvent*) 
      Qt::MetaModifier 
      Qt::AltModifier 
      

      The first call corresponds to pressing Alt, the second one to additionally pressing 'g'.

      It works with Qt 5.0.2, e.g. the output for that is:

      virtual void MyWidget::keyPressEvent(QKeyEvent*) 
      Qt::AltModifier 
      virtual void MyWidget::keyPressEvent(QKeyEvent*) 
      Qt::AltModifier 
      

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

            paeglis Gatis Paeglis
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes