Thanks. Made so:
if ((vectX1.size()) < 10)
{
vectX1.append(time1.fromTime_t(osX).toTime_t());
vectY1.append(osY);
curv1->setSamples(vectX1,vectY1);
}
else
{
vectX1.pop_front();
vectY1.pop_front();
vectX1.append(time1.fromTime_t(osX).toTime_t());
vectY1.append(osY);
curv1->setSamples(vectX1,vectY1);
}
if ((vectX1.size()) < 10)
{
vectX1.append(time1.fromTime_t(osX).toTime_t());
vectY1.append(osY);
curv1->setSamples(vectX1,vectY1);
}
else
{
vectX1.pop_front();
vectY1.pop_front();
vectX1.append(time1.fromTime_t(osX).toTime_t());
vectY1.append(osY);
curv1->setSamples(vectX1,vectY1);
}
To copy to clipboard, switch view to plain text mode
Bookmarks