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

Mdi windows save&restore geometry on dual monitors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4: Low
    • None
    • 4.7.2, 5.5.0
    • Widgets: Main Window
    • None
    • Windows 7. Dual monitor configuration.

    Description

      The problem arises when the main window is on secondary display only.

      Steps to Reproduce:
      1. Compile an run the attached code
      2. Install an additional display.
      3. Move main window into secondary display.
      4. Click "Store" button to save geometry of sub window.
      5. Click the "Restore" button to restore geometry of sub window
      ... and sub window disappears. In fact, it goes out of scope.

      This is problem with QWidget::restoreGeometry
      To fix this add this:
      qwidget.cpp:

      Attachments

        1. main.cpp
          3 kB
        2. mdiwindow.cpp
          4 kB
        3. qtbug18648.zip
          3 kB

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              cemehehko Andrew Semenenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes