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

Win: Calling setFocus() in constructor of a child activeSubWindo w() returns NULL

    XMLWordPrintable

Details

    Description

      When adding a child widget to QMdiArea after the main window has been shown, and this child widget has a setFocus call in its constructor, then this child will not be made the activeSubWindow and activeSubWindow will return null.
      This happens only when the child is added directly using addSubWindow().
      Creating a QMdiSubWindow containing the widget and calling addSubWindow with the subWindow works fine.

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes