Results 1 to 11 of 11

Thread: Restore the size of the window after minimize

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Restore the size of the window after minimize

    Ahh sorry, I see now you tried with showNormal()...
    I use showNormal on a dialog which I took off its title bar and handled all that my self.
    For me showNormal behaves just like it would with a normal window, meaning, if I maximize the dialog, then minimize it and then resotre it, it will come back to be maximized.
    Check if you are not calling showNormal twise after minimized state, this could have the effect your are experiancing, meaning, once it restores(to maximized), and the scond call restores it back to the not maximize size...

  2. #2
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Restore the size of the window after minimize

    Quote Originally Posted by high_flyer
    For me showNormal behaves just like it would with a normal window, meaning, if I maximize the dialog, then minimize it and then resotre it, it will come back to be maximized.
    When you talk about "restore" it what you mean, calling "showNormal"? I thought that showNormal has this behaviour but doesn't seems so in my app...

    Quote Originally Posted by high_flyer
    check if you are not calling showNormal twise after minimized state, this could have the effect your are experiancing, meaning, once it restores(to maximized), and the scond call restores it back to the not maximize size...
    I will check it thanks
    Last edited by SkripT; 25th March 2006 at 11:05.

Similar Threads

  1. update window size
    By eric in forum Newbie
    Replies: 3
    Last Post: 14th January 2008, 10:21
  2. Minimize other Window
    By johncharlesb in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2007, 16:22
  3. Problem hiding main window on minimize
    By bpetty in forum Newbie
    Replies: 5
    Last Post: 18th September 2007, 17:41
  4. window sizes changing even though max size defined
    By JonathanForQT4 in forum Newbie
    Replies: 3
    Last Post: 6th August 2007, 10:39
  5. Replies: 1
    Last Post: 9th February 2007, 09:41

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.