How to know if I'm showing a tooltip?

John Tapsell johnflux at
Fri Mar 18 14:18:35 GMT 2011

On 18 March 2011 11:24, John Tapsell <johnflux at> wrote:
> I've tried  && window()->isActiveWindow()  which partially solves the
> problem, but it's possible to have a dialog box on top, but have the
> main window have the focus..

I figured it out - I just need:

        if (QToolTip::isVisible() && qApp->topLevelAt(QCursor::pos())
== window()) {


More information about the kde-core-devel mailing list