This is in QT4. I have implemented an MDI application and am trying to remove the top left icon, min, max, and close buttons off of the titlebar of a MDI child window.

When I call AddWindow on my QWorkspace, a QWorkspaceChild object is "wrapped" around my wiget. This enclosing window has min/max/and close buttons as well as an icon on the top left. How do I get rid of them while keeping the titlebar? I tried SetWindowFlags, but that did not do anything. I tried digging through the actual QT code for the class, but everything I need is private.