Results 1 to 5 of 5

Thread: QMdiSubWindow, saveGeometry/restoreGeometry

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Platforms
    Unix/X11 Windows

    Default QMdiSubWindow, saveGeometry/restoreGeometry

    Hi
    I'm having problems when using the saveGeometry/restoreGeometry with QMdiSubWindow.
    What happens is that restoreGeometry sets an incorrect horizontal position on my MdiChild window when the main window is on the secondary monitor, the horizontal position equals the width of the primary monitor.

    I've attached a project which displays the problem, follow these steps to reproduce:
    1. Run the application
    2. Move the main window to your secondary monitor
    3. Click on File->New child
    4. Click on File->Save geometry
    5. Close the mdi child window
    6. Click on File->Restore geometry

    If you try the same steps on your primary monitor it works as expected

    Anyone out there who can help me understand this behaviour, is this a bug in Qt or in my code?

    I'm using Qt 4.7.2 on Windows7

    Thanks in advance
    Olle
    Attached Files Attached Files

Similar Threads

  1. Replies: 6
    Last Post: 9th May 2012, 10:53
  2. QMdiSubWindow Questions
    By ericV in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2009, 14:52
  3. Moving a QMdiSubWindow
    By philwinder in forum Qt Programming
    Replies: 1
    Last Post: 2nd November 2008, 10:12
  4. saveGeometry in X11
    By arjunasd in forum Qt Programming
    Replies: 16
    Last Post: 7th August 2007, 23:56
  5. QMdiSubWindow resizing in 4.3
    By kalpa in forum Qt Programming
    Replies: 0
    Last Post: 4th June 2007, 13:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.