PDA

View Full Version : QText Browser - open folder by clicking the link displayed



mecrazycoder
20th December 2010, 18:24
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?

Lykurg
20th December 2010, 21:48
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.