i have widget that should contain stretched QTextEdit and a overlay widget with some buttons, something like this
Qt Code:
  1. ________________________
  2. | QTextEdit _____ |
  3. | | | |
  4. | |____| |
  5. | |
  6. | |
  7. | |
  8. | |
  9. |_______________________|
To copy to clipboard, switch view to plain text mode 
(hope that picture looks right)

I have trouble implementing this simple behaviour:
if mouse is in the rect where widget widget with buttons should be, show widget with buttons
when the mouse leaves the rect, hide the widget
anyone tried to achive something similar?