Start Application after 1 second delay.

This commit is contained in:
Gerhard Hoffmann 2023-08-11 11:05:02 +02:00
parent 202e83268b
commit 9eb458c4c5

View File

@ -33,10 +33,9 @@ MainWindow::MainWindow(Worker *worker, QWidget *parent)
ui->updateStatus->setEnabled(true);
m_startTimer = new QTimer(this);
// connect(m_startTimer, SIGNAL(timeout()), ui->start, SLOT(click()));
connect(m_startTimer, SIGNAL(timeout()), m_worker, SLOT(update()));
m_startTimer->setSingleShot(true);
m_startTimer->start(5 * 1000);
m_startTimer->start(1000);
m_exitTimer = new QTimer(this);
connect(m_exitTimer, SIGNAL(timeout()), ui->exit, SLOT(click()));