Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10501

QProgressBar Timer event spam from QWindowsStyle

    XMLWordPrintable

Details

    • 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?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            sabrog Vladislav
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes