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

Mdi windows save&restore geometry on dual monitors

XMLWordPrintable

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

      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:

        1. main.cpp
          3 kB
          Andrew Semenenko
        2. mdiwindow.cpp
          4 kB
          Andrew Semenenko
        3. qtbug18648.zip
          3 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes