PDA

View Full Version : Viewing a file



mukunda
5th February 2011, 09:01
I am saving a file to a folder and i want to view the file through program without going to that directory and opening that file.How can i do that?

tbscope
5th February 2011, 09:07
You use QFile to open and read the file.
Then something like a QTextEdit to view the file (if it is a readable text file).
Other viewers are available to view graphics files.

http://doc.qt.nokia.com/4.7/qfile.html#details
http://doc.qt.nokia.com/4.7/qtextedit.html#details