I want to use QFutureInterface, but its doc is not provided in Qt Assistant. So I have to use the Qt Creator source to have a look at how it is used.
The codes look like these:
Qt Code:
  1. static void find_helper(QFutureInterface<Usage> &future,
  2. const CppModelManagerInterface::WorkingCopy workingCopy,
  3. const LookupContext context,
  4. CppFindReferences *findRefs,
  5. Symbol *symbol){....}
  6. const CppModelManagerInterface::WorkingCopy workingCopy = _modelManager->workingCopy();
  7. QFuture<Usage> result;
  8. result = QtConcurrent::run(&find_helper, workingCopy,
  9. parameters.context, this, parameters.symbol);
To copy to clipboard, switch view to plain text mode 
Note that the first parameter is not provided by the caller!!!Just like the pointer "this". Why ? When I write a code snippet like that, it complied error.
Can Anyone help me ? Thanks.