构造函数中增加:

Qt::WindowFlags flags= Qt::Dialog ;
flags |= Qt::WindowMinimizeButtonHint;
setWindowFlags(flags);


这么做的同时也去掉了“这是什么”按钮