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

QFutureInterface setProgressValue allows to set values outside of progress range

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.0
    • Core: Threads
    • None
    • 3
    • 1d8dd9a02c9715561b365007f1520e41fe64e703
    • Qt6_Foundation_Sprint 22

    Description

      Current QFutureInterface progress functionality supports setting a value out of range:

      QFutureInterface<int> iface;
      iface.setProgressRange(0, 2);
      iface.setProgressValue(10);  // outside of [0, 2] range
      iface.progressValue();  // returns 10

      This didn't affect us so far due to QFutureInterface being an "internal" public class. With QPromise being introduced, this would be a visible public functionality.

      Attachments

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

        Activity

          People

            ivan.solovev Ivan Solovev
            agolubev Andrei Golubev
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes