Is it possible to disable animation of the progress bar in Qt and make it behave like a meter instead?
Below is the default behavior, and I would instead like it to not have the shiny wave go through it periodically. I was hoping to use it to show used resources such as CPU, memory, and disk space.
css for use in qt designer:
QProgressBar::chunk {
background-color: #3add36;
width: 1px;
}
QProgressBar {
border: 2px solid grey;
border-radius: 0px;
text-align: center;
}
pyqt example:
my_progress_bar = QProgressBar()
my_progress_bar.setStyleSheet(" QProgressBar { border: 2px solid grey; border-radius: 0px; text-align: center; } QProgressBar::chunk {background-color: #3add36; width: 1px;}")
It looks like the progress bar you are using is the Windows Vista look. You should be able to modify the behavior by changing the stylesheet. Try replacing the background, image of the progressbar and/or the chunk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With