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
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 97 Times in 94 Posts

    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, 10:48
  2. Replies: 1
    Last Post: 5th April 2012, 08:17
  3. how to use arguments in Qt?
    By mr_kazoodle in forum Newbie
    Replies: 5
    Last Post: 26th January 2011, 21:04
  4. qtconcurrent
    By knishaq in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2009, 09:41

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
  •  
Qt is a trademark of The Qt Company.