progress bar look like battery
Hi everyone,
I want to create a battery icon and where i can show the battery percentage.So i want to change the style sheet of progress bar so that it looks like a battery.
Can any one help me how to create a style sheet for progress bar so that it looks like a battery
or is there any better way for this one ?
thanks.
Re: progress bar look like battery
I think it's easier to subclass QProgressBar and implement what you want there.
Re: progress bar look like battery
Do you have any example which will help me ?
Re: progress bar look like battery
There are lots of examples available. You can have a look at the Analog Clock example in the docs.
Re: progress bar look like battery
Dis you try this from documentation
Code:
background-color: #CD96CD;
width: 10px;
margin: 0.5px;
}