I'm very interested in something similar to this. Basically I need only dates as X axis. Do you thing this snippet is correct?
QwtPlot *plt = ui->qwtPlot;
plt->setAxisScaleDraw(QwtPlot::xBottom, new TimeScaleDraw("dd/M/yy"));
QDate date = getDateFromSomewhere();
QDateTime tm(date);
xData.append(tm.toTime_t());
yData.append(someData());
Bookmarks