Checking if the content language uses the Right to left direction?

  • Is there a built-in method in Qt or another way to check if the content language uses the Right-to-Left direction?

    QFile fileHandle("c:/file.txt");
    QTextStream fileContent(&fileHandle);

  • Moderators

    if you mean just by reading a file? Then no.
    The UTF-8 encoded data in the txt file doesn't even have to be text at all. It depends if you are trying to interpret it as such.
    Are the files written by yourself? If so you could add the left-to-right information to the file and handle it appropriatly when reading it again.

Log in to reply

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