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

MDI Area usingScrollbars and setOption(QMdiArea::DontMaximizeSubWindowOnActivation)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.4.0
    • Other
    • None

    Description

      When using a QMdiArea and the scrollbars are set and the option DontMaximizeSubWindowOnActivation is set as follows:

      mdiArea->setOption(QMdiArea::DontMaximizeSubWindowOnActivation);
      mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
      mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

      it is possible to scroll away the maximized sub window.

      Steps to reproduce (using the attached example):

      • Compile an run the example.
      • You will see a normal sub window in front of a maximized sub window.
      • Move that window to the top of the mdiArea and beyond. (the ScrollBar Appears)
      • Now use that scrollbar to scroll to the top and (the maximized sub window moves down) .

      This is not the expected behavior because the window in the back is maximized and should not move down.

      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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes