You have to set (or clear) appropriate window flags in the window constructor. To get rid of the "minimise" button, you should probably clear the Qt::WindowMinimizeButtonHint flag. I didn't find one for the close button (which doesn't mean there is no flag for that). Alternatively use a window type which doesn't have those buttons (for example using Qt::FramelessWindowHint).
Bookmarks