Results 1 to 2 of 2

Thread: auto new line in QLineEdit

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default auto new line in QLineEdit

    hi friends/Expert,

    is is possible to automatic new line in lineEdit when user enters the text in it . if the text length exceeds certain length new line has to be added automatically. is it possible in lineEdit .

    Thanks in advance
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: auto new line in QLineEdit

    QLineEdit is a single line editing widget.

    With QTextEdit (or QPlainTextEdit) and a suitable QTextEdit::wordWrapMode() the text will be wrapped for display in the visible area of the widget but new line characters are not inserted in the actual text unless the user types them or your code inserts them.

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

    wagmare (26th March 2014)

Similar Threads

  1. Execute window command line-by-line using QProcess
    By nhocjerry in forum Qt Programming
    Replies: 5
    Last Post: 30th July 2013, 12:21
  2. QlineEdit auto detects path
    By jesse_mark in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2012, 18:14
  3. Replies: 2
    Last Post: 2nd May 2011, 06:33
  4. Replies: 1
    Last Post: 12th October 2010, 22:20
  5. Auto commit in QLineEdit in QTableWidget
    By Corran in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 17:50

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.