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

QQuickPopupWindow1 didn't disable key grab in windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.1
    • Quick: Widget
    • None
    • Windows

    Description

      I have Menu in my qml file, it has a submenu which create a custom dialog defined by myself. The problem is that the lineedit in the dialog didn't accept any key input. 
      I debugged into the qt library and found that the menu grab key board when it calls show in qquickpopupwindow.cpp:

       

      void QQuickPopupWindow1::show()
      {
          ...
          setKeyboardGrabEnabled(true);
      }
      

      But it didn't release the keyGrab when it dismissed. So that the system keeps a windows pointer to this Menu in class QWindowsKeyMapper, and not any key event was passed to my dialog.

      What's more, the problem only exists in windows platform, and linux is ok.

      Wish to get any good advice to avoid this later.

      Thank you.

       

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            xlong.lee Dawn Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes