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

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

XMLWordPrintable

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes