[Qt-interest] Newline character in QLineEdit

Bo Thorsen bo at fioniasoftware.dk
Wed Apr 6 08:55:33 CEST 2011


Den 06-04-2011 08:08, Surya Kiran Gullapalli skrev:
> 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.

There is no support for escaped chars in QLineEdit. You have to 
implement this yourself.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk



More information about the Qt-interest-old mailing list