I'm trying to create a widget that has auto show/hide property and the widget has 3 buttons in QVBoxLayout. I need to show the widget the same way Ubuntu unity's menubar is displayed. I need to create that kinda animation. When the cursor is moved to a specified area of the QMainWindow, the widget has to be displayed with some transition time. And when the cursor moves out of the specified area, the widget should be hidden.
Can someone kindly help me out to get started.

Should I use QPropertyAnimation or something related to Qt Graphics ?

Thank you.