Try this
setWindowFlags(Qt::WindowTitleHint);
or
setWindowFlags(Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint);

Hope it helps