Results 1 to 2 of 2

Thread: Catch click Hyperlink event

  1. #1
    Join Date
    May 2009
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Question Catch click Hyperlink event

    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) 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

  2. #2
    Join Date
    May 2009
    Posts
    62
    Thanks
    2
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Catch click Hyperlink event

    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?

Similar Threads

  1. Replies: 4
    Last Post: 21st March 2009, 13:51
  2. Replies: 4
    Last Post: 19th February 2009, 11:10
  3. Replies: 2
    Last Post: 4th August 2008, 07:44
  4. On click event for a QPixmap
    By rishid in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2008, 16:12
  5. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 09:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.