You need to learn to read error messages more thoroughly.
@Raphawel said in How to retrieve data from an excel .csv file, and put it in a graph with QCustomPlot:
C:\Users\46053500\Documents\Graph_QT\graphConso\graphconso.cpp:140: error : no matching function for call to 'QCPGraph::setData(QVector<char>&, QVector<double>&)'
ui->customplot->graph(0)->setData(xData2, yData2);
This error message tells you that the first parameter you are handing in is of type QVector<char>. By now we have established that it should be QVector<double>. You should be able to figure out that you are passing the wrong variable here.
@Raphawel said in How to retrieve data from an excel .csv file, and put it in a graph with QCustomPlot:
C:\Users\46053500\Documents\Graph_QT\graphConso\graphconso.cpp:125: error : no matching function for call to 'QDateTime::fromString(QStringList&, const char [20])'
referenceDateTime = QDateTime::fromString(lineList, "MM/dd/yyyy hh:mm AP");
And again it tells you that the type of the first parameter is QStringList. As the function name implies it wants a QString instead. So, you need to take one element out of the string list to pass to the function.
Please have a careful look at the error messages because these ones you are posting are really easy to read and see what's wrong. C++ is a strongly typed language. Learn to use this power to your advantage. The compiler exactly tells you when you are using the wrong type. And it is a lot better to have this information at compile time than to have to figure this out at runtime.