From kde-devel Thu Oct 05 13:05:22 2000 From: Christian Gebauer Date: Thu, 05 Oct 2000 13:05:22 +0000 To: kde-devel Subject: Re: something like signal linkClicked() in QTextView/QTextBrowser ? X-MARC-Message: https://marc.info/?l=kde-devel&m=97075103413512 aleXXX wrote: > > Hi, > > I want to insert links in my QTextView and then do something if > the link is clicked. > I didn't find a signal or a virtual method which is called in this case. > Did I oversee it ? > > Only thing I figured out until now would be to > > #define private public for the anchorAt()-method > > and then almost take the MouseReleaseEvent() from QTextBrowser but additionally > emit a signal. > Jepp, this is the only way, and I think it is save to do it, because qtextbrowser.h contains this comment: QString anchorAt(const QPoint& pos); // public in 3.0 Christian -- >><< Christian Gebauer >><< gebauer@bigfoot.com >><< ICQ 14916141 >><< >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<