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 )
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
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
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
Bookmarks