I'm creating a text editor in pyqt5 python. and I want to add the find feature like any other text/code editor. After entering a word or words in a find line edit; that word will be highlighted in TextEdit! how can do it in pyqt5 python [not in pyqt4 or any other programming language] my code:
class Ui_nms_pad(QMainWindow):
def __init__(self):
super(Ui_nms_pad, self).__init__()
uic.loadUi('Nms_pad.ui', self)
self.Find_Button.clicked.connect(self.Find_word())
def Find_word(self):
words = self.Find_lineEdit.text
{highlight words in text edit}

I hope the code below will serve your purpose.