In my code I am using setLayoutDirection(Qt::RightToLeft) function. Layout changing from left to right but text is not changing properly.

Example:
Hello Qt! (In Left to right Layout)
!Hello Qt (In Right to Left Layout) instead of Hello Qt!

If text is ending with any special character like ., !,( etc..., and after changing the layout to Right to Left then text appearance is not proper.

examples:
1) Open. (LeftToRight)
.Open (RightToLeft) It should be Open.
2) Open File... (LTR)
.Open File.. (RTL)
3) Hello! (LTR)
!Hello (RTL)

If anybody knows solution to above problem, please send me a mail.