[Development] Timeout for QFuture::waitForFinished()
aha_1980 at gmx.de
Tue Jul 10 21:46:23 CEST 2018
I can only reply to the second half of your request.
> Follow-up question if a timeout could be added: AFAIK adding an new
> parameter to waitForFinished() or adding an overload is BiC.
That's only true if you *change* the existing method. Adding a new
overload while keeping the existing method *is possible*. So if you have:
you can add in Qt 5:
void QFutureWatcher::waitForFinished(int timeout);
and merge both in Qt 6:
void QFutureWatcher::waitForFinished(int timeout = 30000); // or -1
More information about the Development