Results 1 to 2 of 2

Thread: QTextEdit::find() backward not working

  1. #1
    Join Date
    Sep 2006
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question QTextEdit::find() backward not working

    Hello,

    I am working with QTextEdit for developing Plain Text Editor.
    I am trying to implement search forward/backward functionality for the plain text editor, using QTextEdit::find().
    Search forward is working very fine, but search backward is not happening properly.
    I have found that search backward happens only once. I mean the function QTextEdit::find() searches for the required text only once from the current cursor position.
    I would like to know if this is a known bug in Qt3.3.2 ?
    Or, is there any solution for this?

    Thanks in advance,
    sukanya

  2. #2
    Join Date
    Oct 2006
    Location
    Poznan, Poland
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextEdit::find() backward not working

    When you search a word and he was found, this word is selected.
    Cursor is AFTER last character of this selection.
    When you search backwards you search BEFOR curent cursor position.
    At this moment you find everytime te same word (endless).
    Befor next find-backwards you must first sets the cursor position befor first char of current selection.

Similar Threads

  1. QTextBrowser::forward() and backward()
    By derrickbj in forum Qt Programming
    Replies: 4
    Last Post: 13th October 2006, 21:22
  2. Connect not working
    By xgoan in forum Qt Programming
    Replies: 4
    Last Post: 24th July 2006, 11:27
  3. Replies: 1
    Last Post: 11th June 2006, 22:25
  4. Signals/Slots stopped working
    By Jimmy2775 in forum Qt Programming
    Replies: 8
    Last Post: 31st March 2006, 21:11
  5. QSettings - beginReadArray not working
    By Mike in forum Qt Programming
    Replies: 7
    Last Post: 9th January 2006, 21:24

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.