Results 1 to 7 of 7

Thread: Is this the correct way of using QConcurrent::run() >

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Is this the correct way of using QConcurrent::run() >

    One option you have is to wait on the future or future watchers when exiting.
    Basically close the window and call watcher.waitForFinished() before exiting.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    Hossein (12th October 2015)

Similar Threads

  1. Replies: 30
    Last Post: 14th March 2015, 10:11
  2. this code is correct, but It will not run ?
    By rezas1000 in forum Newbie
    Replies: 1
    Last Post: 3rd September 2014, 11:52
  3. QConcurrent and images added onscreen
    By ErrMania in forum Newbie
    Replies: 0
    Last Post: 24th November 2011, 20:12
  4. Is this sentence correct?
    By SWEngineer in forum Newbie
    Replies: 6
    Last Post: 21st June 2011, 01:56
  5. QConcurrent::Run vs QThread
    By Andrea Landi in forum Newbie
    Replies: 1
    Last Post: 31st May 2011, 09:55

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.