PDA

View Full Version : a annoying problem about QTextCursor



kaos33
31st August 2006, 03: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???

munna
31st August 2006, 05: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.