What i can remember as i do had the same problem is that you have to load the text with QUrl: view->load(QUrl(fileinfo->absoluteFilePath())); Than you do not explicit activate Javascript. greeting frank