You can use QByteArray QFile::readAll(); To appear it in QTextBrowser or QTextEdit just use append(cons QString&). You can use it like this ui.yourTextBrowser->append( QString( yourFile.readAll() ) );