[ACCEPTED]-Adding a minimize button to a Qt dialog?-qt4
You can't add the minimize button yourself 5 as it is handled by the window manager. You 4 can tell the window manager how your dialog 3 should be handled using Window Manager hints. This 2 is done using the windowFlags property of your widget. There's 1 also an example demonstrating this.
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint);
More Related questions