PDA

View Full Version : Equivalent function



Sarma
10th March 2006, 08:55
hi,
There is a function in Qt 3.3.4 for QTextEdit like:
te->text(int line)
which returns the text at "line". What is its equivalent function in Qt 4.0.1

Also tell me the equivalent function for :
1) "te->paragraphs()" which gives the no.of paragraphs in the textedit.
2) "te->setSelection(int parafrom ,int indexfrom ,int parato ,int indexto)"

Thanks & regards,
Sarma.

Sarma
10th March 2006, 12:02
kindly mention any url where I can have the comparisions between the old methods and the newer ones that I have to use.

jacek
10th March 2006, 12:05
http://doc.trolltech.com/4.1/porting4.html

zlatko
10th March 2006, 12:07
http://doc.trolltech.com/4.1/q3textedit.htm

Sarma
10th March 2006, 12:35
Sir,
But no where I have found the equivalent functions for the above ones. kindly tell the equivalents of those three functions .

zlatko
10th March 2006, 13:03
Em...
http://doc.trolltech.com/4.1/q3textedit.html#text-prop
http://doc.trolltech.com/4.1/q3textedit.html#paragraphs
http://doc.trolltech.com/4.1/q3textedit.html#setSelection

but it will be better if you use Jasek proposition