Results 1 to 2 of 2

Thread: Single line QTextEdit

  1. #1
    Join Date
    Jan 2006
    Location
    Leiden, the Netherlands
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Single line QTextEdit

    Hello,

    Is it possible to let QTextEdit operate in single line mode? I would like to switch from single to multiline with just one edit control.

    Best regards,
    Arthur

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Single line QTextEdit

    You can use QTextDocument::maximumBlockCount if you really want. But probably switching between QTextEdit and QLineEdit would be much better.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Line spacing in QTextEdit/QTextBrowser
    By Valheru in forum Qt Programming
    Replies: 5
    Last Post: 10th November 2010, 13:47
  2. Draw vertical Line in QTextEdit
    By ericV in forum Qt Programming
    Replies: 3
    Last Post: 22nd July 2009, 15:50
  3. Modifying a line in a QTextEdit
    By elcuco in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2008, 16:50
  4. Line Number - QTextEdit...???
    By deepusrp in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 16:34
  5. How to get text of last line only in QTextEdit?
    By rajesh in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2006, 13:37

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.