Results 1 to 3 of 3

Thread: Can't find

  1. #1
    Join Date
    Feb 2006

    Default Can't find

    i get selected text from QTextEdit
    QString findExpr = textEdit->textCursor().selection().toPlainText();
    and then try to find this text
    textEdit->document()->find(findExpr, cursor, flags);
    but can't
    (i don't forget move cursor to begin of document )
    Cut and Run

  2. #2
    Join Date
    Jan 2006
    Thanked 27 Times in 27 Posts
    Qt products
    Unix/X11 Windows

    Default Re: Can't find

    What flag have you set?
    And what about simply texeEdit->find(text)
    Last edited by zlatko; 16th March 2006 at 13:51.
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Feb 2006

    Default Re: Can't find

    QTextDocument::FindForward of course
    cant use textEdit->find(text)
    cause i need flag and FindCaseSensitively using
    Last edited by Hz; 16th March 2006 at 14:19.
    Cut and Run

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06
  2. GCC can't find QSqlDatabase!!
    By brevleq in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2007, 07:05
  3. Cannot find file: in Qt installation
    By jivanr in forum Installation and Deployment
    Replies: 3
    Last Post: 11th June 2007, 12:22
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Replies: 7
    Last Post: 1st August 2006, 21:15


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.