windows - disable progress bar animation in Qt -
is possible disable animation of progress bar in qt , make behave meter instead?
below default behavior, , instead not have shiny wave go through periodically. hoping use show used resources such cpu, memory, , disk space.
css 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;}")
Comments
Post a Comment