add intial text to line edit pyqt code example Example: pyqt5 qlineedit on change self.MyInput.textChanged.connect(self.doSomething)