Hi,
thanks to the great documentation/tutorials/fora,
I managed to set up the menubar with QAction. Now I face this problem
error: ‘my2dPlot* MyWidget::mainPlot’ is private
error: ‘my2dPlot* MyWidget::mainPlot’ is private
To copy to clipboard, switch view to plain text mode
when i try to add this line to the openfile action
widget->mainPlot->plotMainCurve(fileName);
widget->mainPlot->plotMainCurve(fileName);
To copy to clipboard, switch view to plain text mode
-widget is the central widget of the mainWindow
-mainPlot is a class that I have created to plot 2d plots
-plotMainCurve is the method to plot the selected data file
This is seems to be a typical hierarchy error. But how can i overcome it and call the function to plot the curve of a specific data file (filename= "data.txt")?
Bookmarks