PyQt5 | How to create capsule shaped push button ?
Capsule shape is basically shape which consist of one rectangle and two semi circle is connected to both the ends, in this tutorial we will see how to create these shaped button.
Below is normal Push button vs capsule shaped push button.
In order to create capsule shape button we have to do the following steps :
1. Create a button.
2. Resize the button to make it rectangle.
3. Set the radius of button using style sheet to half of height.
Note : If the button will not be rectangle it will become circle.