title: Qt: QMainWindow with a close, minimize and help button
body: <p>If I have a class which inherits QMainWindow, and I want it to only have the buttons; close, minimize and help in the window bar, how should I proceed?</p>
  
  <p>If I use this code for the window flags:
  <code>setWindowFlags(Qt::Window | Qt::WindowContextHelpButtonHint | Qt::WindowMinimizeButtonHint);</code>
  It results in a window with maximize, minimize and close button.</p>
  
  <p>If I exclude "WindowMinimizeButtonHint", there is only a help and close button.</p>
  
  <p>How can I, if possible, make so there is a close, help AND minimize button ONLY?</p>