I create a Qt Gui application with a “pushbutton” and a “text edit”. I wanna assign the text in “text edit” to a QString variable after click on the “pushbutton”. How can i store this text in a QString variable ?
Share
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.
And why do you need a file?
Just this:
Also you need to connect signal “clicked” of QPuhsButton and created slot to get text.