I have a progressBar showing some progress by timer. If the progressBar doesn't change for 5sec, I will show the tooltip to give a hint. If the progressbar moves again, the tooltip should be hidden again. So, my tooltip is program-triggered.

The problem is that, when I hide the tooltip, it still shows.
I tried:
Qt Code:
  1. QToolTip::showText(this->mapToGlobal(progressBar_overall->pos()), "");
  2. QToolTip::hideText();
  3. QWidget::setToolTip("");
To copy to clipboard, switch view to plain text mode 

All of these doesn't work for me. But if I do mouse-click of any widget inside the dialog of progressBar, the tooltip will disappear.

Anyone can help? Thanks.