[Interest] QPlainTextEdit layout bug

Diego Iastrubni diegoiast at gmail.com
Tue Jan 29 14:13:40 CET 2013


On Tue, Jan 29, 2013 at 1:54 PM, M. Bashir Al-Noimi <mbnoimi at gmail.com>wrote:

>  On 29/01/2013 10:39 ص, Diego Iastrubni wrote:
>
> On Thu, Jan 24, 2013 at 11:50 PM, M. Bashir Al-Noimi <mbnoimi at gmail.com>wrote:
>
>> As you know Qt supports auto text layout for all Qt input widgets but
>> recently I noticed that QPlainTextEdit doesn't!!
>>
>> Could anyone tell me if this is wrong or right before filing a new bug
>> report.
>>
>> As you can see in this screenshot QLineEdit works fine:
>> http://i.imgur.com/vmvQvi3.png
>>
>> While QPlainTextEdit doesn't!
>> http://i.imgur.com/VCOS7xj.png
>>
>> PS
>> I couldn't find any temporarily solution for this issue because this
>> widget works with plain text only so I couldn't add "text-align: right;"
>> for example.
>>
>>
> You are not looking for text-alignment, but text direction, which is not
> implemented in QPlainTextDocumentLayout does not support direction. I will
> see if it hard to implement, porting from QTextDocumentLayout and see if
> anyone else is interested.
>
>   Thanks Diego,
>
> I opened a bug report at:
> https://bugreports.qt-project.org/browse/QTBUG-29341
>
>
As a workaround - you can use now QTextEdit instead of QPlainTextEdit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130129/c61698d5/attachment.html>


More information about the Interest mailing list