Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
72e61b127470b044e370af7017fa8a5b0538244f
Description
If we place QProgressBar on widget then QWindowsStyle begin spam with QTimer events, becouse have this code:
void QWindowsStyle::timerEvent(QTimerEvent *event) { #ifndef QT_NO_PROGRESSBAR Q_D(QWindowsStyle); if (event->timerId() == d->animateTimer) { Q_ASSERT(d->animationFps> 0); d->animateStep = d->startTime.elapsed() / (1000 / d->animationFps); foreach (QProgressBar *bar, d->bars) { if ((bar->minimum() == 0 && bar->maximum() == 0)) bar->update(); } } #endif // QT_NO_PROGRESSBAR event->ignore(); }
Why this need, if QProgressBar don't change value?