[Qt-interest] accessing line numbers of selected text in a QTextEdit

Lorenzo Bettini bettini at dsi.unifi.it
Tue Jul 14 14:51:54 CEST 2009


Hi

I'd like to know the line numbers of a possible selected text in 
QTextEdit; I thought I could use QTextCursor return by the text edit, 
but then QTextCursor only returns integers which represent the position 
in the whole editor contents...

any clue please?

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