PDA

View Full Version : Catch click Hyperlink event



summer_of_69
22nd June 2009, 13:35
Hi All,

I just want to create a hyperlink which is not a url but simply a path of file(eg:- you can see such behaviour when we compile any code in VS2005 and if error occurs it dumps all the logs in particular file which can be open using cntrl+click) :confused:and catch the event if that link is clicked ,so that I can do some processing.

I was going through anchorClicked() but didn't get much from it any one have any for this.

Is it possible?

Thanks in advance

shentian
22nd June 2009, 20:43
You can use a file URL in a QTextEdit. I just checked in the designer: "file:///c:/test.txt". Clicking on the URL will display the file in the QTextEdit. Is that what you want?