@stampede: it worked like a charm!!
thank you very much..I always really confused with the usage of "this"
What is the actual difference between the two lines??
Qt Code:
  1. this->mainPlot->plotMainCurve(file);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. widget->mainPlot->plotMainCurve(fileName);
To copy to clipboard, switch view to plain text mode