Results 1 to 3 of 3

Thread: QPlainTextEdit text alignment

  1. #1
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Question QPlainTextEdit text alignment

    Hi

    As I see 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.

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QPlainTextEdit text alignment

    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].
    Last edited by Rajesh.Rathod; 30th July 2013 at 08:45.

  3. The following user says thank you to Rajesh.Rathod for this useful post:

    mkh (30th July 2013)

  4. #3
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QPlainTextEdit text alignment

    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.
    --
    Mohsen

Similar Threads

  1. Problem of highlighting text in QPlainTextEdit
    By topfortune in forum Qt Programming
    Replies: 5
    Last Post: 19th April 2012, 03:51
  2. multicolor text in QPlainTextEdit
    By mastupristi in forum Qt Programming
    Replies: 5
    Last Post: 14th January 2011, 22:37
  3. Selecting Text QPlainTextEdit
    By smhall316 in forum Newbie
    Replies: 0
    Last Post: 7th December 2010, 21:09
  4. read text from QPlainTextEdit
    By chs in forum Newbie
    Replies: 2
    Last Post: 21st November 2009, 13:07
  5. QPlainTextEdit reload text
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2009, 15:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.