From kde-devel Fri Oct 06 06:38:38 2000 From: Simon Hausmann Date: Fri, 06 Oct 2000 06:38:38 +0000 To: kde-devel Subject: Re: something like signal linkClicked() in QTextView/QTextBrowser ? X-MARC-Message: https://marc.info/?l=kde-devel&m=97081422929872 On Thu, Oct 05, 2000 at 02:52:25PM +0200, 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. > > The widget is intended for a man page viewing widget (first rough draft in > kdenonbeta/kanu) Perhaps KTextBrowser in kdeui is what you're looking for? From the docu: * By default it will * invoke the system mailer or the system browser when a link is * activated, or it can emit the signal @ref urlClick() or @ref mailClick() * when a link is activated. Bye, Simon >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<