Hello
I want to run a function in separate thread because in that function there is very heavy calculation and it freezes my ui for the time, and also because it is taking too much time.
This is my function.

void SRP_Ray_Plot(double No_Of_Rays, double Max_Range,double Source_Depth,double Initial_Angle, double Angle_Difference);
and this function is currently being called on button click.

I tried to run with QtConcurent. Like this.
Qt Code:
  1. QFuture<void> future = QtConcurrent::run(SRP_Ray_Plot,SIP_number_of_rays,SIP_horizontal_range,SIP_source_depth,SIP_ray_initial_angle,SIP_Angle_Difference);
To copy to clipboard, switch view to plain text mode 
But i get the following error
D:/Shivendra ]/SRP_24_Oct/mainwindow.h:42: QtConcurrent: No such file or directory
Please help me with this one.