I have a QTabWidget, where each tab has a QPlainTextEdit as its widget. So, how do I access each tab widget? How do I edit that widget?
I have a QTabWidget , where each tab has a QPlainTextEdit as its widget.
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 use the
widgetfunction ofQTabWidgetin order to get the widget at the specified tab index.If the
QPlainTextEditis the only widget of every tab page then the returned widget will be that. Otherwise you need to get thechildrenof the widget and find theQPlainTextEditin them.