方法があります。このメソッドには静的な QTime がありますが、何かが発生した場合はこの値をリセットしたいと考えています。
static QTime time(QTime::currentTime());
// calculate two new data points:
double key = time.elapsed()/1000;
static double lastPointKey = 0;
if(newPlot == true){
// like tihs key = 0 ;
// lastPointKey = 0 ;
}