PDA

View Full Version : QPlainTextEdit text alignment



mkh
30th July 2013, 06:21
Hi

As I see (http://qt-project.org/doc/qt-5.0/qtwidgets/qplaintextedit.html) there is no alignment property for QPlainTextEdit nor setAlignment() method.
So is there any way to set the text alignment to right for QPlainTextEdit?

Thanks.

Rajesh.Rathod
30th July 2013, 07:50
It seems that it is derived from QAbstractScrollArea, so that is the reason it has no text alignment functions supported, why you are using QPlainTextEdit, I mean what is the specific requirement to use this control?

For this issue already opened bug [#QTBUG-7516].

mkh
30th July 2013, 17:27
Hi Rajesh

Actually I'm using a third party widget that has been derived from QPlainTextEdit. I know that QTextEdit supports alignment but I think QPlainTextEdit should logically do as well.

Thank you for reporting issue.