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.

enter image description here

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;}") 

enter image description here


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -