QToolTip::showText disappears after mouse relese

228 Views Asked by At

Inside a mousePressEvent I do

QToolTip::showText(evt->globalPos(), "Test", this, rect(), 1000);

But the tooltip disappears after releasing the mouse button. If I don't release it, the tooltip disappears after that 1000 msecs.

0

There are 0 best solutions below