PDA

View Full Version : How to get URL referred to by the anchor in QTextBrowser



prakash
15th March 2006, 11:42
Hi all,

anchorClicked signal is emitted when the user clicks an anchor in the QTextBrowser and the URL referred to by the anchor is passed in link. But this signal can not be connected to a slot having paramater. So i am connecting this signal as follows - connect(browser,SIGNAL(anchorClicked (const QUrl &)),this,SLOT(onResourcesLinkClick ()));.
so please tell me how to get the URL referred to by the anchor. QTextBrowser has a method
anchorAt, but how to get index(QPoint) for it.

Thanks in advance.

jpn
15th March 2006, 11:46
But this signal can not be connected to a slot having paramater.
Why couldn't?
Maybe there was a mismatch in the types of your slot's parameters. They must be exactly the same.

prakash
15th March 2006, 12:13
Thanks, I Got it sloved. Please tell me how to remove this thread. I am going to post a new one.