PyQt5 – Access the size of Status Bar
In this article we will see how to access the size of status bar. We know that we can set the status bar size by using
setFizedSize method with status bar object, in order to access the status bar size we will use
size method with its object.
-> If size of status bar is not set it will return minimum size.
-> If fixed size of status bar is set it will return fixed size.
-> If minimum size of status bar is set it will return minimum size.
-> If maximum size of status bar is set it will return minimum size.
Syntax : self.statusBar().size() Argument : It takes no argument. Return : It returns QSize object.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course