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

QMdiArea::subWindowActivated() is not emitted when an already visible top level widget is added to the QMdiArea

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.6.2
    • GUI: Workspace
    • None

      QMdiArea::subWindowActivated() is not emitted when an already visible top level widget is added to the QMdiArea. If it is added with QMdiArea::addSubWindow() without creating the subwindow for it then it does not emit the signal and two windows can end up appearing active inside the QMdiArea.

      However if it is added to a QMdiSubWindow first and then that is added to the QMdiArea then it works correctly.

      Attached is a patch to the mdi example to reproduce this problem, click on new file three times, then on save then on new again and see the bad behavior.

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

            dedietri Gabriel de Dietrich (drgvond)
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes