MyDialog::MyDialog(QWidget *parent){ setWindowFlags(Qt::WindowMinimizeButtonHint);}
setWindowFlags(Qt::WindowMinimizeButtonHint | Qt::Dialog);
C++ (Qt) QDialog dlg(this, Qt::CustomizeWindowHint | Qt::WindowTitleHint);