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

Modal windows block parent from getting focusOut event on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.6
    • QPA: Windows
    • Windows

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes