Self-expanding Widget, on mouse over

Posted by Sergiy Migdalskiy on Stack Overflow See other posts from Stack Overflow or by Sergiy Migdalskiy
Published on 2012-06-03T22:13:01Z Indexed on 2012/06/04 4:40 UTC
Read the original article Hit count: 222

Filed under:

I want to implement a widget (with some edit boxes and sliders) that would open beneath or next to a button ("Opener") when I hover it. The key is it's a temporary widget - as soon as it loses focus, I want it gone. Also, I want it to pop up right next to the Opener, ideally pointing an arrow to Opener.

So, it's basically a tooltip. But it needs to be a widget with buttons and sliders and stuff like that. Is there a clever way to implement it without making a custom widget and writing handlers for all the mouse and focus events and recomputing its ideal position every time I open it or the Opener moves?

© Stack Overflow or respective owner

Related posts about qt