[Qt-interest] Prevent QToolTip from instantly disappearing?

Peter pgeorges at gmail.com
Sat Dec 5 13:32:28 CET 2009


I have the following bit of code to display a tooltip when a link has been
hovered:

void WebPage::onLinkHovered(const QString& link, const QString& title, const
QString& textContent)
{
  QToolTip::showText(QCursor::pos(), link);
}

The tooltip shows up fine but almost immediately disappears, even though the
event only fires off once. Is there any way to make the tooltip not
disappear until I hide it myself?

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091205/60194f4a/attachment.html 


More information about the Qt-interest-old mailing list