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.