What did you already try?
I created a new TextEdit Widget and I managed to copy searchString there with
ui->plainTextEdit->setPlainText(searchString);
OK, I know how to use TextEdit Widget (whee!) but that doesn´t help me much because printed text it is the search string not the found text.
Also I managed to highlight rest of the line... so that highlighted text "version 3.0 as published by the Free Software" now includes the text "3.0" what i´m interested in. So the actual question is that what function i can use to copy the highlighted text?
Last edited by LoomVortex; 25th August 2009 at 10:51.
LoomVortex (26th August 2009)
Ok, it was easier than I expected.
"QTextCursor::selectedText ()" did the job. Thanks!![]()
Bookmarks