Created one QTextEdit widget named inputPane
Displaying text using syntax
m_uiMainWindow.inputPane->append(QString(designFile.readAll()));

Now I want to Find expr in the file displayed on input pane & highlight the same, but I am not able to do so.

Pls help.
I have used
if(m_uiMainWindow.inputPane->find(expr))
{
QMessageBox::information(this,tr("Find"),tr("Found "));
}
I am able to see "Found" message but I am not clear with what is to be done to highlight the found text.