How to know if I'm showing a tooltip?

2011-03-18 Thread John Tapsell
Hi all, When the user hovers over an item, it shows a tooltip. I update that tooltip once a second using the following code: if(QToolTip::isVisible()) { QWidget *w = d-mUi-treeView-viewport(); if(w-geometry().contains(d-mUi-treeView-mapFromGlobal(

Re: How to know if I'm showing a tooltip?

2011-03-18 Thread John Tapsell
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