[Qt-interest] setCursorPosition in QTextEdit

Lorenzo Bettini bettini at dsi.unifi.it
Mon Jul 27 13:04:28 CEST 2009


Hi

I noticed that in qt4 the setCursorPosition(int line, int col) was 
removed from the class QTextEdit...  that was quite a useful method, why 
has it been removed?

 From what I understand you can achieve the same goal by using 
QTextCursor.moveposition
specifying to move to the next line an amount of times, and then move to 
the next character an amount of times, am I right?

thanks in advance
	Lorenzo

-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




More information about the Qt-interest-old mailing list