QDataStream is for writing binary files, not text files. You need to open your target QFile with OpenMode "QIODevice:: WriteOnly | QIODevice:: Text" and then you need to use QTextStream to write the text file.
QDataStream is for writing binary files, not text files. You need to open your target QFile with OpenMode "QIODevice:: WriteOnly | QIODevice:: Text" and then you need to use QTextStream to write the text file.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Eduardo Huerta (19th June 2018)
Bookmarks