Results 1 to 2 of 2

Thread: a annoying problem about QTextCursor

  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question a annoying problem about QTextCursor

    I've got similar question with showhand who post the message about QTextCursor, and I post additional question. 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???

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: a annoying problem about QTextCursor

    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.

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.