Results 1 to 3 of 3

Thread: How to resize a Mdi child?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3

    Default Re: How to resize a Mdi child?

    After much searching for an answer, and experimenting, I found this to work for me.

    Qt Code:
    1. child->parentWidget()->resize(900, 700);
    2. child->parentWidget()->updateGeometry();
    3. child->show();
    4. // child->showMaximized();
    To copy to clipboard, switch view to plain text mode 
    You can use showMaximized() in place of show() and the (900, 700) will still be used if the window is later changed to normal.
    Last edited by harveyab; 25th May 2016 at 19:53. Reason: Had it right the first time, sigh. Fixed again.

Similar Threads

  1. Replies: 1
    Last Post: 1st May 2010, 23:03
  2. Qt resize child Window...
    By Peppy in forum Qt Programming
    Replies: 6
    Last Post: 12th December 2009, 12:53
  3. Qidget height resize if child widgets invisible
    By visor_ua in forum Qt Programming
    Replies: 1
    Last Post: 27th April 2008, 11:27
  4. Replies: 2
    Last Post: 22nd January 2008, 16:10
  5. Infinite loop - resize parent from child
    By bitChanger in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2006, 13:21

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.