qtime

    1熱度

    2回答

    我正在使用QT5.51。爲什麼t1無效?: QTime t1 = QTime().addSecs(122); qDebug() << t1.isValid() << t1.toString("hh:mm:ss"); 我希望得到「00:02:02」,但我得到了錯誤「」。

    1熱度

    1回答

    我有方法。此方法具有靜態QTime,但如果發生某些情況,我想重置此值。 static QTime time(QTime::currentTime()); // calculate two new data points: double key = time.elapsed()/1000; static double lastPointKey = 0; if(newPlot == tr