Hi,

The maximize button disappears when the setMaximumSize() method is called for a dialog.

For the context help button the arithmetical & with negation of the Qt::WindowContextHelpButtonHint flag works.

Qt::WindowFlags f = windowFlags();
f &= ~Qt::WindowContextHelpButtonHint;
setWindowFlags(f);

Only the minimize button stays, but i can live with it.