How to do auto show/hide a widget in Qt

Printable View