You are not logged in.

1

Thursday, August 12th 2010, 4:12pm

Wrap text in QLineEdit

Hi,
How to wrap text in QLineEdit. I set QLineEdit geometry but then also able to enter text on one line.
someone help me to add multiple line in QLineEdit.

Thanks.

2

Thursday, August 12th 2010, 5:19pm

Try wordwrap..

void setWordWrap( true);

3

Friday, August 13th 2010, 5:50am

Hi,
setWordWrap() method is not a member of QLineEdit.
Please tell some other solution.

Junior

Professional

  • "Junior" is male

Posts: 1,613

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

4

Friday, August 13th 2010, 1:03pm

QLineEdit class isn't for multi-line, use QTextEdit or other class for this type of string operation.