I wrote a code to open file in gedit by clicking a link which is displayed in QTextBrowser. But file is not getting open in gedit instead it is displaying QTextBrowser itself. Here is my code
Qt Code:
  1. void MainWindow::openTextEdit()
  2. {
  3. p->show();
  4.  
  5. p->append("<a href = \"/home/winbros/Test.cpp\"> Link </a>");
  6. p->setOpenExternalLinks(true);
  7. }
To copy to clipboard, switch view to plain text mode 
. Tanx in advance