Updating a progress bar
Unsolved
General and Desktop
-
Hi
Please have slightly more patience before bumping a topic
as many users here are in other time zones - so give it a day. :)QProgressbar has setMaximum() for setting upper limit.
If that is the actual question ?
-
Hi and welcome to devnet,
Then use QProgressBar::setRange
So basically:myProgressBar->setRange(0, 35);
-
Once you have them, call setValue on the progress bar
-
I mean that if you know that the temperature is between 0 and 35 then you can already set the minimum and maximum value of the progress bar.
What is buffersplit exactly ? A variable containing an integer value ?
-
Well, when
buffersplit
callsetValue(buffersplit)
on your progress bar.I'd recommend using a more descriptive variable name