Oh I see...To do so you need to handle mouse events in the regarding ui's controller class. You can do it in various ways.
1. You can reimplement QWdiget::mouseMoveEvent(QmouseEvent* e).
2. You can use eventFilter() method along with installEventfilter()
You can get the current mouse position from both ways above and compare the position if it's on your widget. Then you can show/hide the toolbar.
Bookmarks