PDA

View Full Version : Tool Tip Visibility Timing



Goug
18th January 2012, 22:16
Hi,

Is it possible and/or easy to control how quickly tool tips appear, and how long they stay visible? I don't see anything in the QToolTip class, and I'm guessing that's what Qt uses throughout.

If tool tips can be configured to stay visible for only a short period, the related question is whether or not it's possible to specify a different timeout if the user quickly moved away from the object and then came back?

I personally think this is overkill, but a project manager came by with these questions, and I'm just trying to answer them.

Thank you,
Doug

wysota
19th January 2012, 00:50
Check if there is anything in QStyle API for that. If not, you can probably try to handle tooltips yourself by processing help events. I'm not sure if you can adjust time the tooltip is shown though. I'd guess it was handled by the operating system.