Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFuture::waitForFinished does not wait on Linux Qt 5.2.1

QFuture::waitForFinished does not wait on Linux Qt 5.2.1

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 588 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ProfRivkin
    wrote on last edited by
    #1

    QFuture::waitForFinished does not wait for the thread to complete in the Linux implementation of Qt 5.2.1.
    We cant speak for 5.3 since it is too buggy to be used, do dont ask if its fixed there or not.

    Here is the code used (copied in fact from the Qt-projects.org website)

    QFuture<void> future = QtConcurrent::run(&meas, &Measure::Run, &appData, false);
    // Wait till done.
    future.waitForFinished();

    If anyone has a suggestion for a actually working method to simply wait without blocking the UI thread which this is called from, please let me know.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved