PDA

View Full Version : Can't find



Hz
16th March 2006, 13:36
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 :crying:
(i don't forget move cursor to begin of document ;) )

zlatko
16th March 2006, 13:49
What flag have you set?
And what about simply texeEdit->find(text) ;)

Hz
16th March 2006, 14:15
QTextDocument::FindForward of course :cool:
cant use textEdit->find(text)
cause i need flag and FindCaseSensitively using