Hi,

I have two QVectors where the y-axis has double values, but the x-axis has time values which are specified in HH::MM::SS.xxxxx, where xxxxx is in milliseconds.
QVector<QString> timeData; //x-axis
QVector<double> attributeData; //y-axis

To setup a plot I have the following:
QwtPlotCurve *curve1 = new QwtPlotCurve( "Curve 1" );

When assigning setSamples since time is not a double value, any ideas on how to plot by time on the x axis? Of course qwt needs to be able to interpret the time so it can move along the x-axis properly. There must be a way to do it, just kind find any info on it. I tried to look it up in the documentation but no luck.

curve1->setSamples(timeData, y-data); //time data is not a double what else can I use?

If someone can post an example, that would great.

Thanks in advance!