With Qt 4.5 and MDI child windows you get rid of the close button with the following flags which must be supplied at the time when the MDI child window is added to the MDI area:
mychildwindow* child1 = new MyChildWindow(this);
Qt::WindowFlags flags;
flags = Qt::Window | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint;
mdiArea->addSubWindow(child1, flags);
mychildwindow* child1 = new MyChildWindow(this);
Qt::WindowFlags flags;
flags = Qt::Window | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint;
mdiArea->addSubWindow(child1, flags);
To copy to clipboard, switch view to plain text mode
Didn't try with top level widgets but this could work for them too.
Bookmarks