Qt - Disabling QDialog's "?" button

Narek picture Narek · Jun 3, 2010 · Viewed 15.5k times · Source

I create an instance of QDialog and on the left of 'x' (close) button i have also '?' button. How I can disable that '?' ?

Answer

user362638 picture user362638 · Jun 9, 2010

Change the window flags, for example in the constructor:

this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);