Results 1 to 2 of 2

Thread: QtextCursor

  1. #1
    Join Date
    May 2009
    Posts
    94
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Post QtextCursor

    i want to return beginning of the selected text cursor in terms of QtextCursor.

    or

    Select text of a document keeping the cursor at the beginning of the selected text.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtextCursor

    You can have more than one cursor - so you can have one pointing at the beginning of the selected text and another pointing elsewhere. See QTextCursor::movePosition() to learn how to move the cursor to the interesting spot. There is also QTextCursor::selectionStart() and family that you might find useful.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTextCursor
    By bismitapadhy in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2009, 11:46
  2. Replies: 1
    Last Post: 11th April 2009, 22:27
  3. QTextCursor and QScriptEngine
    By roxton in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2008, 19:47
  4. Replies: 1
    Last Post: 1st June 2008, 11:04
  5. a annoying problem about QTextCursor
    By kaos33 in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2006, 05:00

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.