Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

QTextEdit's find() won't find for me

$
0
0
Hey all, I have some text in a readonly QTextEdit (actually a QByteArray from a QProcess displayed via QTextEdit’s append()) In order to create a search box, I connected the textEdited() signal of a QLineEdit to a slot which goes like this: void DcmDumpWindow::find(QString findWhat){  qDebug() << textOutput->find(findWhat,QTextDocument::FindCaseSensitively); } The problem is it doesn’t find text which I type into the search box. That particular line keeps returning false even when I type in something which I know is in the QTextEdit. Have I set up something wrong? I can confirm the QString being sent to the find() function is the contents of the QLineEdit.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>