In qt how do you disable a QTextEdit without disabling the scroll bar? Its for previewing purposes.
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.
You can set the QTextEdit as read only:
http://doc.qt.io/qt-4.8/qtextedit.html#readOnly-prop
If you want it to “look disabled”, you can also set the foreground and background roles to the disabled colors.