Results 1 to 2 of 2

Thread: QPlainTextEdit Wrapping

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QPlainTextEdit Wrapping

    For some reasons I cannot use QTextEdit instead of QPlainTextEdit,

    the problem is in QPlainTextEdit there is no explicit way to specify a wrap width. e.g 25 character one line.
    there is only NoWrap and WidgetWrap

    anyone knows how to make it like in QTextEdit?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QPlainTextEdit Wrapping

    Quote Originally Posted by cic View Post
    For some reasons I cannot use QTextEdit instead of QPlainTextEdit,
    Wouldn't it be more reasonable to look into these reasons instead of adding functionality to QPlainTextEdit that QTextEdit already has?

    Cheers,
    _

Similar Threads

  1. ActiveQt Wrapping
    By ComaWhite in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2010, 10:36
  2. Wrapping Qt into a dll
    By spatten in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2010, 19:09
  3. Wrapping Qt
    By OlivierREVOL in forum General Discussion
    Replies: 2
    Last Post: 4th June 2009, 21:55
  4. Wrapping while printing
    By veda in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2007, 15:37
  5. Word wrapping
    By bruccutler in forum Qt Programming
    Replies: 4
    Last Post: 26th February 2007, 16:33

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
  •  
Qt is a trademark of The Qt Company.