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

Modal windows block parent from getting focusOut event on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 4.8.6
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Labels:
    • Environment:
      Windows

      Description

      Happens on Windows only. Tested on Qt 4.8.6. Not tested on Qt5.

      When a window creates a modal child, the child grabs the parent's event loop, which results that the parent does not get a QEvent::FocusOut event, though the focus has been lost.

      This results in weird effects if there is an event filter attached to the parent. The filter still processes events without knowing that the widget has already lost the focus.

      In Krita we workarounded this bug using this patch:
      http://quickgit.kde.org/?p=calligra.git&a=commit&h=cc1c064cd8ad63883e1f44a345fecfe5c8952bc2

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dkazakov Dmitry Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes