PDA

View Full Version : How to resize a QMainWindow in QWorkspace.



s_a_white
17th July 2006, 17:44
I've tried to programmatically Maximise a QMainWindow in QWorkspace but I cannot get the equivalant of the user hitting the maximise button. Thoughts?

I've tried setWindowState, but that always leaves the title bar on the internal window. I've looked at posting a WindowStateChangeEvent but that hasn't worked so far.

wysota
17th July 2006, 18:02
Did you try calling showMaximized() on the child window?

s_a_white
17th July 2006, 18:22
Thankyou, that works. I did look for a setMaximised or just maximise call, somehow totally missed showMaximised.