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

QWidget loses ability to receive "focusOutEvent"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.0, 5.1.0
    • GUI: Window management
    • None
    • Macbook Pro, i7, OS X Lion 10.7.3
    • macOS

    Description

      Under 4.7.4 (and earlier versions):

      An instance of QWidget derived class serving as a temporary sub-window in an application with (Qt::FramelessWindowHint | Qt::Popup) windows flags would receive a "focusOutEvent" method call when the user clicked someplace else, including the window caption.

      In 4.8, no calls to "focusOutEvent" are made for the window caption and/or other areas of the application which are not receiving focus. This is clearly something that's new to 4.8 as 4.7.4 works correctly.

      The resulting phenomenon is that users cannot create popup windows that will be closed if users click elsewhere. In 4.8 you can actually drag a window, by its caption away from the still-visible popup window. If developers want that window to close when the parent window begins to get dragged away, they can't upgrade to 4.8

      Discussion in Qt Forums: http://developer.qt.nokia.com/forums/viewthread/14264/#74251

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ronm71 ronen magid
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes