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

[regression] KeyboardLayoutChange is not detected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.0.0 Beta 2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux mint, 32 bit

      Description

      1) Compile and Run the provided example
      2) Change keyboard layout in the system settings

      RESULT:
      On Qt 4.8.x KeyboardLayoutChange is received, on Qt 5 KeyboardLayoutChange is not received.

      class Me: public QWidget
      {
          Q_OBJECT
      public:
          Me(): QWidget() {
              setGeometry(300,300,600,600);
              qDebug() << "done";
          }
          bool event(QEvent *ev) {
              if (ev->type() == QEvent::KeyboardLayoutChange) {
                  qDebug() << "kb layout changed";
              } else {
                  return QWidget::event(ev);
              }
      
          }
      };
      
      int main(int argc, char* argv[]) {
         QApplication app(argc, argv);
         qDebug() << qVersion();
         Me es;
         es.show();
         return app.exec();
      };
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                paeglis Gatis Paeglis
                Reporter:
                paeglis Gatis Paeglis
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes