Important: Please read the Qt Code of Conduct -

Qt Android. Reading text from a file.

  • 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);

    alt text

    alt text

Log in to reply