In this article, we will see how to create dashed border of label in PyQt5 application. Generally, when we create a label with a border, the border is continuous, but we can make a dashed border as well. Below shown how normal and dashed borders are different.
In order to do we will use
Syntax : label.setStyleSheet(“border :3px black; border-style : dashed”)
Argument : It takes string as argument
Action performed : It makes the border dashed.
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.