On 18 March 2011 11:24, John Tapsell <johnf...@gmail.com> 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()) {

JohnFlux

Reply via email to