PDA

View Full Version : How I get the cursor position in QTextView (qt2)



pencilren
30th May 2007, 06:49
I want to get the text of current cursor position.

wysota
30th May 2007, 08:18
I don't think you can.

pencilren
30th May 2007, 08:58
http://example (http://test)
when I move the cursor to the URL above, How can I know this is a URL .
if QTextView cannot support this function, can other class support, or I have to inherit one?

high_flyer
30th May 2007, 09:16
QTextEdit should.

wysota
30th May 2007, 09:19
I think you have to use QTextBrowser for that.


QTextEdit should.
He's using Qt2.

high_flyer
30th May 2007, 09:23
He's using Qt2.
Oops, soory.:o

pencilren
30th May 2007, 09:25
but I use qt2 not 4, and in qt2 I cannot find QTextEdit