求QTextEdit超链接有关问题解答

求QTextEdit超链接问题解答
我想在QTextEdit中显示一个超链接,然后我在qt中要捕获这个超链接的点击事件,请问有什么办法啊?
------解决方案--------------------
你应该用QTextBrower
------解决方案--------------------
QTextBrowser中的

Signals:
void anchorClicked(const QUrl & link)

This signal is emitted when the user clicks an anchor. The URL referred to by the anchor is passed in link.

Note that the browser will automatically handle navigation to the location specified by link unless the openLinks property is set to false or you call setSource() in a slot connected. This mechanism is used to override the default navigation features of the browser.