try to set
setWindowFlags(Qt::Window);
or check setWindowFlags() doc.