[PyQt] [PYQT5]BUG in QtWidgets.QPlainTextEdit

Maurizio Berti maurizio.berti at gmail.com
Thu Oct 4 23:20:11 BST 2018


Please, Maziar: context.
If you don't tell us *how* you're trying to do anything, it's impossible
for us to help you.
Just writing "it doesn't work" is meaningless.

Anyway, in case you're using QWidget.setLayoutDirection, as the
documentation says:

This method no longer affects text layout direction since Qt 4.7.

(source: http://doc.qt.io/qt-5/qwidget.html#layoutDirection-prop )

Have a look at QTextOption and its methods setTextDirection()
and setAlignment().

Maurizio

Il giorno gio 4 ott 2018 alle ore 19:44 Maziar Parsijani <
maziar.parsijani at gmail.com> ha scritto:

> Hi,
> I want to use QPlainTextEdit for my right to left text but it doesn't
> support it to align right my text .
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



-- 
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181005/476009d0/attachment.html>


More information about the PyQt mailing list