Results 1 to 2 of 2

Thread: QText Browser - open folder by clicking the link displayed

  1. #1
    Join Date
    Dec 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QText Browser - open folder by clicking the link displayed

    1. Right now I am displaying something like /home/binary/ in QText browser. Now I want the open the folder by clicking on this text. How to do that ?
    2. Is it possible to display/maintain history of texts that are typed in line edit?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QText Browser - open folder by clicking the link displayed

    1) Use QTextBrowser::anchorClicked() and react on that signal in a custom slot where you open the folder.
    2) Not sure what you exactly want, but have a look at QCompleter.

Similar Threads

  1. Multiplateform open folder in explorer
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2011, 08:27
  2. add link that open web browser on unix
    By asafb in forum Qt Programming
    Replies: 7
    Last Post: 25th January 2009, 21:55
  3. How to open a browser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2006, 18:21
  4. Text Browser Link Question
    By taylor34 in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2006, 19:54
  5. How To Customize QText Browser
    By awalesminfo in forum Newbie
    Replies: 1
    Last Post: 21st March 2006, 12:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.