Hey everyone,

I'm trying to incorportate QtConcurrent into one of my classes, and I'm starting simple with it:

Qt Code:
  1. #include "coredata.h"
  2.  
  3. CoreData::CoreData()
  4. {
  5.  
  6. }
  7.  
  8. void CoreData::afunc()
  9. {
  10.  
  11. }
  12.  
  13. void CoreData::threaded()
  14. {
  15. QFuture<void> future = QtConcurrent::run(afunc);
  16. }
To copy to clipboard, switch view to plain text mode 

This results in an error:
error: no matching function for call to 'run(<unresolved overloaded function type>)'

I've looked through the Qt Documentation, and since it is all within the main() function, I don't know how it works within a class. I have a feeling I'm missing something simple, but I'm relatively new to C++ and the solution is escaping me.

Thanks in advance!!