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

Add `QFutureWatcher::setFuture(const std::future<T>&)`

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: QtConcurrent
    • Labels:
      None
    • Environment:

      Windows 7 64 bit, compiling in VS2013

      Description

      When working with non-Qt concurrent operations, std::futures are often returned. There is no direct way to watch these futures and call a `SLOT` when they complete.

      It would be nice to be able to watch a `std::future` or create a `QFuture` from a `std::future` (`static QFuture QFuture::fromStdFuture(std::future&& future)` or similar).

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sonakur Sona Kurazyan
              Reporter:
              jtooker@efji.com John Tooker
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes