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

MDI Area usingScrollbars and setOption(QMdiArea::DontMaximizeSubWindowOnActivation)

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes