Unlike setting background images, skins adjust themselves according to the size of status bar. In background image if the image size is large and status bar size is small only that part of image is displayable that comprises the size of status bar. The main reason of setting skin to status bar is that, status bar height is comparatively smaller than the normal images that’s why instead of using background images skin is preferable.
Background and skin will look like this:
Syntax : self.statusBar().setStyleSheet(“border-image : url(skin.png);”)
Argument : It takes string as argument.
Action performed : It sets skin to status bar.
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.