Hi friends,
I am acquire the data from hardware unit and saving into SQLITE database. I have So many fields in each record .I Identified and saved into relational database.I am able to retrieve and plot for one single field right now,i.e one curve. But how do i retrieve and plot for many fields, say for example 45 fields. I want to plot all the curves simultaneously in window with four qwt plot widgets.

This is the code i am using right now to retrieve for one channel and plot the curve for it.

Qt Code:
  1. QSqlQuery q1("SELECT Time_Interval, Channel_2 FROM Plotting_data1 ORDER BY CAST (Time_Interval AS INTEGER) LIMIT 60");
  2. vx.clear();
  3. vy.clear();
  4. if(q1.exec())
  5. {
  6. if (q1.first())
  7. {
  8. do
  9. {
  10. vx.push_back(q1.value(0).toDouble());
  11. vy.push_back(q1.value(1).toDouble());
  12. } while(q1.next());
  13. }
  14. if (vx.count() <= 0)
  15. return;
  16.  
  17. if (! newcurve)
  18. {
  19. newcurve= new QwtPlotCurve();
  20. newcurve->attach(qwtPlot);
  21. }
  22. newcurve->setData(vx.data(), vy.data(), vx.count());
  23. newcurve->setPen(QPen(Qt::blue));
  24. myPlot->replot();
To copy to clipboard, switch view to plain text mode 
Thank you...

Regards,
Tavit.