If you reuse the same QProgressBar object you must call QProgressBar::reset() before resuse it
If you reuse the same QProgressBar object you must call QProgressBar::reset() before resuse it
A camel can go 14 days without drink,
I can't!!!
Thank you, I did try to reset it, but it didn't have any affect. Since I'm passing it a value of zero initially and then incrementing it up to 100, I shouldn't have to reset it right?
I did notice that occasionally if I wait a while, maybe around 30 seconds, the application does work like it's supposed to, but not every time.
I'm not sure if I'm describing this correctly, I've attached the program and two test cases.
I don't think the binary will do us any good... Does "simulate" allow pending events to be processed?
No it doesn't.
After finding out about pending events, I added QEventLoop::processEvents() into simulate. However this makes the calculations incredibly slow, so I set processEvents to be run once every one thousand calculations.
Why would it work the first time, but not the second?
Bookmarks