Hi, I want to know how to restore the size (and position) of a window after been minimized. I have tried it with showNormal but it reduzes the size of the window if the window was at full screen before minimize it. Anybody knows it?
Thanks.
Hi, I want to know how to restore the size (and position) of a window after been minimized. I have tried it with showNormal but it reduzes the size of the window if the window was at full screen before minimize it. Anybody knows it?
Thanks.
Doesn't show() do what you want?
Sorry wysota, I thought that show() only was useful when the window is explicitly hidden, not minimized...Originally Posted by wysota
if you want to restore a window you should use showNormal().
What about raise() or activateWindow()?
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...
I will try it thanks.Originally Posted by wysota
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...Originally Posted by high_flyer
I will check it thanksOriginally Posted by high_flyer
Last edited by SkripT; 25th March 2006 at 11:05.
Hi all
Please apologize for re-activating this thread, but I'm unable to find a proper solution. Is it possible to show a widget maximized/minimized depending on his previous state? I thought, showNormal() will do the job but in my sample the widget pops up with a bit of flickering... and then it will be showed in normal state.
..thanks!
I am facing the same problem, to clarify further it is as follows
- my window in maximized to full screen by me
- I minimized it
- now from code, if I call showNormal() it restores it but it does not stay full screen anymore which is the desired behavior.
showNormal() shows the window as a normal (i.e. not full screen) window. Try calling show() or showFullScreen().
Bookmarks