[Qt-interest] Strange status report from QFuture and QFutureWatcher
Mihail Naydenov
mlists at ymail.com
Mon Sep 21 16:27:23 CEST 2009
Hi,
I'm observing a strange status report from *default-constructed* QFuture and QFutureWatcher:
someQFutureWatcher->isFinished() - false
someQFutureWatcher->isRunning() - false
someQFutureWatcher->.isStarted() - true
someQFutureWatcher->future().isFinished() - true
someQFutureWatcher->future().isRunning() - false
someQFutureWatcher->future().isStarted() - true
someQFuture.isFinished() - true
someQFuture.isRunning() - false
someQFuture.isStarted() - true
All these are members of a class, not initialized in any other way, except construction
(this is the Watcher does not have Future set, so default constructed one is queried).
There two obvious problems
1. The inconsistency b/w querying the Watcher's Future directly, and through the helper function ;
2. A default constructed QFuture reports 'started' ;
thanks
MihailNaydenov
More information about the Qt-interest-old
mailing list