QEditText find ?
-
Implementing "find" puts cursor to the text found and highlights it .
My task is to change the text color...
Changing either background or foreground color produces unwanted color because it "conflicts" with the
standard blue highlight color.I tried this , but it did not do what I need
QTextCursor newCursor = ui->textEdit_111->textCursor(); //newCursor.movePosition(QTextCurso MainCodeBlockr::Right); ui->textEdit_111->setTextCursor(newCursor); ui->textEdit_111->setCursorWidth(10); ui->textEdit_111->setTextBackgroundColor(Qt::red);Can anybody give me a hint what I need to implement in code?
( I do not need the code itself...)I am not sure how to code so only a specific text color is changed , not the entire widget .
But there are examples how to do that - what I am missing is how to "override" the result of "find"
highlighting the text found.