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

QWidget::nativeEvents doesn't receive WM_KEY* messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.3.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MSVC 2013, Qt 5.3.2

      Description

      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.

        Attachments

        1. NativeEvents.zip
          2 kB
        2. qtbug42183.zip
          2 kB

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes