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

Regression: Context Menu key does not send a QContexMenuEvent

    XMLWordPrintable

    Details

    • Commits:
       9fc7fcb4c90f9fdc5bb3581609a1d5b01cfb7076 (Windows) 87f16671c3848ffa2d505aaade1b1172176d59fa (Linux)

      Description

      Reproducible with the following minimal code:

      #include <QApplication>
      #include <QLineEdit>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QLineEdit edit;
          edit.show();
          
          return a.exec();
      }
      

      With Qt 4.8, pressing the Context Menu key, results in a context menu.
      With Qt 5, no context menu is shown.

      Apparently the code in qkeymapper_x11.cpp in qt 4.8 translates the key to a QContextMenuEvent. That code seems to be missing in qt5.

      Windows: Shift-F10

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sorvig Morten Sørvig
              Reporter:
              dt Daniel Teske
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes