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

[regression] KeyboardLayoutChange is not detected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.0.0 Beta 2, 6.6
    • None
    • Linux mint, 32 bit
    • fdd2fc2c7 (dev)

    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

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

          Activity

            People

              paeglis Gatis Paeglis
              paeglis Gatis Paeglis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes