diff --git a/mainwindow.cpp b/mainwindow.cpp index 0d3368b..373b72f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -116,6 +116,7 @@ MainWindow::MainWindow(QWidget *parent) : // 依次发送(回零等 2 秒,其余每条等 0.5 秒)。详见 startInstrumentInitialization / // moveLensToAngle / runNextCommand。 + measurementTimer = new QTimer(this); connect(measurementTimer, &QTimer::timeout, this, &MainWindow::onMeasurementTimeout);