Hi Philminder, I tried your example under 6.00-rc5, and it fails at:
..\datetime\mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
..\datetime\mainwindow.cpp:40: error: no matching function for call to 'QwtPlotCurve::setData(double*, double*, int)'
..\libraries\qwt/qwt_plot_seriesitem.h:146: note: candidates are: void QwtPlotSeriesItem<T>::setData(QwtSeriesData<T>*) [with T = QPointF]
It looks like setData arguments have changed...![]()
please download latest Qwt (6.0) and recompile: it should works.
corrado1972 -
I downloaded datetime.zip and curve->setData(&xData[0], &yData[0], xData.size()); (mainwindow.cpp line40) does not compile with Qwt 6.0.0.
setData should be replaced with setRawSamples
Last edited by TorAn; 30th April 2011 at 16:09.
TorAn excuse me but I understood that the problem was referred to the examples included in Qwt release.
My advice is to discard the datetime.zip and look in the examples, friedberg and cpuplot: there is all the necessary to get datetime axis.
bye
Bookmarks