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

Problem with QMdiArea::currentSubWindow()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • Some future release
    • 4.4.3
    • GUI: Workspace
    • None

    Description

      So, I am trying to understand why my QMdi application returns a null
      pointer from QMdiArea::currentSubWindow() when a QFileSelectionBox was
      opened. I am looking at the difference between the functions
      QMdiArea::activeSubWindow() and QMdiArea::currentSubWindow() in version 4.4.3 as released and while looking into the source code I see that the QMdiArea
      must not be in the state "isActivated" in order to be able to get a
      currentSubWindow() ( see qmdiarea.cpp:1737 ).

      In my scenario a file selection box from my own application has deactivated my
      main window but I am still trying to get the currentSubWindow() (the last
      active one, as I take it from the rest of the code in qmdiarea.cpp) but
      that's to no avail because isActivated is actually still "true".

      My request is that the check for isActivated be dropped and the line 1737 in qmdiaria.cpp be changed for:

      if (!window()->isMinimized())
      return 0;

      so that the code can actually return the last current subwindow regardless of
      whether activation events have been received or processed.

      Attachments

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

        Activity

          People

            monsen Marius Bugge Monsen
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes