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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes