[Qt-interest] Prevent QToolTip from instantly disappearing?

Willy P willy.lists at gmail.com
Thu Oct 6 03:29:27 CEST 2011


Having the same problem.

On Sat, Dec 5, 2009 at 4:32 AM, Peter <pgeorges at gmail.com> wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list