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:
Qt Code:
  1. void runQuery(){
  2. ...
  3. }
  4.  
  5. void getProducts(){
  6. QtConcurrent::run(runQuery);
  7. }
To copy to clipboard, switch view to plain text mode 

I get an error:

Qt Code:
  1. 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?