python qt get text from field code example Example: how to get input from pyqt line edit userinput = self.lineditname.text()