[Solved] QFile ReadOnly is thread safe?

  • Is accessing a file using QFile opened with ReadOnly flag, seeking it and use a QDataStream to read it from multiple threads safe?

    The file will be the same but using multiple instances of QFile to read it

  • Lifetime Qt Champion


    If each thread has its own instance of QFile opened read-only and also its own QDataStream and does the processing itself, then no, there's no particular problem.

  • Thank you very much

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.