I need to create a text input dialog with multiple lines. Is there any way to do this using QInputDialog?
If not, is the simplest recommendation to subclass QPlainTextEdit?
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.
QInputDialog and more precisely getText work only with a QLineEdit.
Just implement a small dialog sublass which contains a QPlainTextEdit. Shouldn’t be too much work. Not as fast as QInputDialog, but not too much effort either.
Update: since version Qt 5.2, QInputDialog has getMultiLineText.