Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Android. Reading text from a file.
Kandid last edited by Kandid
I'm trying to organize in the android application display a some text file of the .txt or .htm format. In Windows everything is fine, but in android is not correctly displayed. And how I can fix scrollbars in application?
UPD: I solved this problem when I added Windows-1251 (for Russian text).
QTextStream stream(&file); stream.setCodec("Windows-1251"); //I miss this QString buffer = stream.readAll(); topic->Set_Text_label_topic(ui->topic_1->text(), buffer); file.flush(); file.close();