View Full Version : a annoying problem about QTextCursor

31st August 2006, 04:28
I've got similar question with showhand who post the message about QTextCursor, and I post additional question.:D How do I kown the cursor in text reaching to the end of the line or the begin of the line?
do i use this movePosition(QTextCursor::NoMove) to judge whether cursor reaching to the end???

31st August 2006, 06:00
I have my own doubts if this will work but you can give it a try

If movePosition(QTextCursor::Left) returns false then you are at the beginning of the line and if movePosition(QTextCursor::Right) returns false then you are at the end of the line.