From 55ec09f3f5cef18b3302290764881fc909a54933 Mon Sep 17 00:00:00 2001 From: leverington Date: Sat, 16 Sep 2023 14:51:57 +0200 Subject: [PATCH] fixed connect in mainwindow errors --- hit2023v2/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hit2023v2/mainwindow.cpp b/hit2023v2/mainwindow.cpp index caa9a54..9e07b1e 100644 --- a/hit2023v2/mainwindow.cpp +++ b/hit2023v2/mainwindow.cpp @@ -29,8 +29,12 @@ MainWindow::MainWindow(QWidget *parent) : theKeithley = new keithley_thr; theStepper = new Stepper; - connect(&timer, QTimer::timeout, this, on_timer); - connect(theKeithley, keithley_thr::esig_newCurrentReadout, this, MainWindow::on_newCurrentReadout); +// connect(&timer, QTimer::timeout, this, on_timer); + connect(&timer, &QTimer::timeout, this, &MainWindow::on_timer); + + // connect(theKeithley, keithley_thr::esig_newCurrentReadout, this, MainWindow::on_newCurrentReadout); + connect(theKeithley, &keithley_thr::esig_newCurrentReadout, this, &MainWindow::on_newCurrentReadout); + }