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

KeyboardModifier not unset when it opens a modal dialog

    XMLWordPrintable

Details

    • Windows

    Description

      My case is : an action is connected to a slot and associated to a shortcut (ctrl+o).

      The slot opens a QFileDialog. When the dialog is closed, a event of type WindowUnblocked is received by the main window, but QGuiApplication::keyboardModifiers returns that the Ctrl modifier is down even if it has been released.

      Tested on Windows with Qt5.13.1 and 5.14 and it doesn't work, but the same project/code tested on Linux with Qt5.14 works as expected.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            th0re Stephane PERREZ
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes