How to make right-to-left language (eg.Arabic) characters behave like left-to-right languages do in qt?
问题 Qt provides a powerful adaptive way to deal with left-to-right languages and right-to-left languages texts.But I encounter my problems dealing with my goals. Picture No.1 What I want to get Picture No.2 What I got when paste to my QTextEdit based widget what picture no.1 shows Picture No.3 What I got when I set text-direction to left-to-right as shown below: QTextDocument *doc = ui->textEdit->document(); QTextOption textOption = doc->defaultTextOption(); textOption.setTextDirection(Qt: