May-12-2022, 07:46 PM
(May-12-2022, 12:11 PM)deanhystad Wrote: Are you trying to get the code when the control loses focus (user is no longer on that line)? To do that you can bind a function to the "editingFinished()" signal. But you don't need to do that for your login screen. You don't care what is typed in the screen until the user presses the login button. You need to bind a function to the clicked() signal of the button, and in that function call self.NameInput.text() to get the text that was typed into the NameInput QLineEdit.
Thanks. That helped. I got it to work now.