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

Default constructed QFuture (and QFutureWatcher) returns true for isCanceled()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.4.0 Beta
    • 5.3.1
    • Documentation
    • None
    • Ubuntu 14.04

    Description

      ...although cancel() was not called. Compare the documentation for isCanceled():

      Returns true if the asynchronous computation has been canceled with the cancel() function; otherwise returns false.

      qDebug() << QFuture<void>().isCanceled();
      

      ...results in "true". But it should be "false"?! If not please state this clearly in the documentation.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes