Is it possible to get all tabs widgets that where added by addTab(QWidget() in QTabWidget in a list.
We can use self.findChildren(QWidget), but it also returns all other widgets inside itself, and there is no way to filter them.
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.
Read the documentation you pointed to more carefully 🙂
QTabWidgethas aQWidget *widget(int index)method that returns the tab at indexindex. Use that to get the tab widgets. That class also has aint count();that tells you how many tabs there are.With these two, you can iterate over all the tabs quite easily.