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
fare passed on to theQWidgetconstructor. If, for example, you don't want a **What's This button in the title bar of the dialog**, passQt::WindowTitleHint | Qt::WindowSystemMenuHintinf.
See also QWidget::setWindowFlags().