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

QWidget::nativeEvents doesn't receive WM_KEY* messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.2
    • None
    • MSVC 2013, Qt 5.3.2

      QWidget::nativeEvents doesn't receive keyboard messages (WM_KEYDOWN etc.) if it's created as child widget. But it still receive mouse messages (WM_LBUTTONDOWN etc.).

      I attached a sample.

      Steps to reproduce:
      1) click on child widget
      2) press any key

      Expected results:
      WM_LBUTTONDOWN and WM_KEYDOWN are processed by child widget.

      Actual results:
      WM_LBUTTONDOWN is processed by child widget, WM_KEYDOWN is processed by parent widget.

      Note: In Qt4 winEvent is working OK.

        1. NativeEvents.zip
          2 kB
        2. qtbug42183.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            sazonov Dmitry Sazonov
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes