1
我有方法。此方法具有靜態QTime,但如果發生某些情況,我想重置此值。靜態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 ;
}