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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Core: QtConcurrent
    • None
    • 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

              sonakur Sona Kurazyan
              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