Hi all
I've a Qplaintextedit object. I need the input text limit should be 1000. How to do it?
i tried with maximumBlockCount(1000) but it didnt help as it will limit blockas only.
Hi all
I've a Qplaintextedit object. I need the input text limit should be 1000. How to do it?
i tried with maximumBlockCount(1000) but it didnt help as it will limit blockas only.
Limit the QPlaintextedit width, compute the number of characters going into one line before line wrap and then you can setMaximumBlockCount( number of lines for 1000 characters).
means u want to limit the input entry below 1000 ..? if so use QValidator ..http://doc.trolltech.com/3.3/qvalidator.html
"Behind every great fortune lies a crime" - Balzac
Bookmarks