i using pyqt develop a dialog, and a LineEidt
some like below, but i can’t get anything from lineEdit1:
lineEdit1 = QtGui.QLineEdit()
lineEdit1.setEchoMode(2)
passWord = lineEdit1.text()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
of course you can’t get anything, because when
lineEdit1.text()is executed, I believe there is no characters input intolineEdit1.You should call
passWord = lineEdit1.text()by some action when the input is over, for example, click a button.