How would you change the text size and font in a QTabWidget?
class TabBar(QtGui.QTabBar):
def ???(self, ???):
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.
With a stylesheet. You don’t need to subclass for that. But from your previous question, you are doing that already. You might as well put this in the
__init__too..If you don’t want to use a custom
QTabBarthe equivalent would be setting the stylesheet on relevantQTabWidgetwith a selector ofQTabBar: