[Qt-interest] Newline character in QLineEdit

Atlant Schmidt aschmidt at dekaresearch.com
Wed Apr 6 12:37:20 CEST 2011


Surya:

  I'm sorry to ask an obvious question, but is there a reason
  why you can't use QTextEdit (the multiline editor) instead
  of QLineEdit? That would save your user the difficulty of
  remembering the "Escape" sequences ("Now are they
  \n, /n, or ^n, 0x0A, or something completely different?")

                                   Atlant

________________________________
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of Surya Kiran Gullapalli
Sent: Wednesday, April 06, 2011 02:08
To: qt-interest List
Subject: [Qt-interest] Newline character in QLineEdit

Hello all,
I'm trying to get user input in QLineEdit, User may type in newline character as \n, but QLineEdit is returning the \n as a QString of 2 characters instead of one.

How to force QLineEdit to correctly return characters like \n, \t etc.

Thanks,
Surya


Click here<https://www.mailcontrol.com/sr/H1VtoSMAsRvTndxI!oX7Us7Qlo!t9IHtlFw8rhfLvh2zJaUB5C6KXKcKrhVrSjTfZ1fjyImhkJVLRkMuvIdUTQ==> to report this email as spam.

________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110406/e2bd640f/attachment.html 


More information about the Qt-interest-old mailing list