I have a problem with displaying rtl languages (mainly Arabic) in a QTableView. No matter what I do the text in a cell is always displayed left aligned. When going into edit mode the QLineEdit displays the text right aligned as expected.
I use a subclassed item delegate. In it I use QPainter::drawText. In the documentation it says that using the version of drawText that takes QRect as a parameter should handle rtl automatically, but it doesn't.
Pasting Arabic text into any of the demo applications that use item views (e.g. the address book and frozen column samples) show the same in my opinion incorrect behavior.