Quote Originally Posted by deekayt View Post
How to display a file in the textBrowser. The file name is available on the line edit selected through the filedialog via Windowsbrowser. I need to be able to display various text files as available in Windows that is .txt .doc .pdf etc
I have tried
Qt Code:
  1. QUrl url("file://c:/ver.txt" );
  2. ui.textBrowser->clear();
  3. ui.textBrowser->setHtml(ui.datalineEdit->text());
  4. ui.textBrowser->show();
To copy to clipboard, switch view to plain text mode 
gestions please.
To display txt or html file inside qt have a look on source
http://ppk.ciz.ch/win_build/cms/html_editor.zip
Image insert , link , table edit & propriety , font , & other fanny ....

To display doc pdf inside qt i think is not possible! only Qprocess qt4.1 maybe qt3
http://www.qtcentre.org/forum/f-qt-p...-doc-4178.html

or the new QDesktopServices from qt4.2 can open the associate apps