I create an instance of QDialog and on the left of \'x\' (close) button i have also \'?\' button. How I can disable that \'?\' ?
From the Qt 4.6 QDialog documentation:
QDialog::QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
Constructs a dialog with parent
parent
.A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry.
The widget flags
f
are passed on to theQWidget
constructor. If, for example, you don't want a **What's This button in the title bar of the dialog**, passQt::WindowTitleHint | Qt::WindowSystemMenuHint
inf
.
See also QWidget::setWindowFlags().