8using namespace std::chrono;
bool singleShot
Whether the timer is a single-shot timer.
void timeout(QPrivateSignal)
This signal is emitted when the timer times out.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void start(int msec)
Starts or restarts the timer with a timeout interval of msec milliseconds.
void setInterval(int msec)
bool singleShot
whether the timer is a single-shot timer
void timeout(QPrivateSignal)
This signal is emitted when the timer times out.
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)