Hello everyone.
I need to call a function from another function in the same class. As it requires much time to be finished (running mysql query on external server), I want it to be in another thread. My code is sth like that:
void runQuery(){
...
}
void getProducts(){
QtConcurrent::run(runQuery);
}
void runQuery(){
...
}
void getProducts(){
QtConcurrent::run(runQuery);
}
To copy to clipboard, switch view to plain text mode
I get an error:
no matching function to call to 'run(<unknown type>)'
no matching function to call to 'run(<unknown type>)'
To copy to clipboard, switch view to plain text mode
Could you help me out please?
Bookmarks