I have this method that finds a term in a textEdit: Now the function is working properly but the textedit.find(term) seems to just lightly highlight the found text like this My question is if textedit.find(term) can select the found text like this Answer You have to change the color associated with QPalette::Highlight: