Results 1 to 4 of 4

Thread: How to select a tex in QTExtEdit

  1. #1
    Join Date
    Apr 2010
    Posts
    31
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Question How to select a tex in QTExtEdit

    Hello.
    I'm making a text editor and for Find function I need to select the found text.
    How can I do it?
    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to select a tex in QTExtEdit

    See QTextCursor and its move function (with QTextCursor::KeepAnchor).

  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to select a tex in QTExtEdit

    Or, just use QTextEdit::find()

  4. #4
    Join Date
    Apr 2010
    Posts
    31
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to select a tex in QTExtEdit

    Thank you so much! I can't believe I couldn't think of QTextEdit::find()!
    Thanks again!

Similar Threads

  1. QTextEdit column select ?
    By kib2 in forum Qt Programming
    Replies: 10
    Last Post: 30th June 2013, 14:20
  2. SELECT * > to $array
    By smrtak in forum Qt Programming
    Replies: 7
    Last Post: 10th September 2008, 09:30
  3. QTableWidget row select
    By nowire75 in forum Newbie
    Replies: 4
    Last Post: 23rd December 2007, 18:59
  4. select a particular area
    By vishesh in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2007, 21:44
  5. Replies: 1
    Last Post: 16th February 2007, 07:22

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.