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

Not able to receive Shift, Ctrl, Alt or Fn key events on Symbian

    XMLWordPrintable

Details

    Description

      The following program does not produce key events when Shift, Ctrl, Alt or Fn are pressed. However, they are produced on Linux.

      class MyLineEdit : public QLineEdit
      {
      public:
          MyLineEdit() :QLineEdit("LineEdit") {}
          ~MyLineEdit() {}
      
          void keyPressEvent(QKeyEvent *e) {
              qDebug() << e;
              QLineEdit::keyPressEvent(e);
          }
          void keyReleaseEvent(QKeyEvent *e) {
              qDebug() << e;
              QLineEdit::keyReleaseEvent(e);
          }
      };
      
      int main(int argc, char **argv) {
          QApplication app(argc, argv);
      
          QWidget w;
          QLayout *layout = new QVBoxLayout;
          w.setLayout(layout);
      
          MyLineEdit *le = new MyLineEdit;
          layout->addWidget(le);
      
          w.show();
          return app.exec();
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            axisnokia axisnokia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes