Append file
General and Desktop
6
Posts
4
Posters
2.9k
Views
1
Watching
-
Bit more information is needed here I think. Where do you want to append this file? Append to what??
Do you want to add the HTML file to a QTextDocument or what? -
Read the file into a string (with QFile and QTextStream) and then use "setHtml":http://doc.qt.nokia.com/4.7-snapshot/qtextdocument.html#setHtml
Or if your question was how to append a file to an existing QTextDocument, use "insertHtml":http://doc.qt.nokia.com/4.7-snapshot/qtextcursor.html#insertHtml . It helps when you state more clearly what you actually want to do and what you have tried already.