Hey everyone,
I'm trying to incorportate QtConcurrent into one of my classes, and I'm starting simple with it:
#include "coredata.h"
CoreData::CoreData()
{
}
void CoreData::afunc()
{
}
void CoreData::threaded()
{
QFuture<void> future = QtConcurrent::run(afunc);
}
#include "coredata.h"
CoreData::CoreData()
{
}
void CoreData::afunc()
{
}
void CoreData::threaded()
{
QFuture<void> future = QtConcurrent::run(afunc);
}
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!!
Bookmarks