Results 1 to 2 of 2

Thread: QtConcurrent::run with return arguments

  1. #1
    Join Date
    Dec 2015
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default QtConcurrent::run with return arguments

    I need to pass the return arguments into QtConcurrent::run function.
    Is it possible? If so, how can I do that?

    Thanks for any help.

    Best regards,
    Maxim

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtConcurrent::run with return arguments

    What do you mean by "the return arguments"?

    You can pass arguments to the function when invoking QtConcurrent::run(), and you can retrieve the return value of the function from the QFuture when it is ready. See the documentation for details.

Similar Threads

  1. Replies: 1
    Last Post: 2nd January 2013, 09:48
  2. Replies: 1
    Last Post: 5th April 2012, 07:17
  3. how to use arguments in Qt?
    By mr_kazoodle in forum Newbie
    Replies: 5
    Last Post: 26th January 2011, 20:04
  4. qtconcurrent
    By knishaq in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2009, 08:41
  5. QtConcurrent
    By Brandybuck in forum An Introduction to QThreads
    Replies: 2
    Last Post: 9th May 2008, 14:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.