[SOLVED] How to delay a QProcess for 1 minute ?
-
Hi,
How to delay a QProcess for 1 minute ?
void Read(QString file){ QProcess process; process.startDetached(file); }
-
Try suspending the process.
Results may vary per platform. -
solved:
void Read(QString file){ QProcess process; process.startDetached(file); } int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QTimer t; QObject::connect(&t, &QTimer::timeout, [&](){ Read(s); t.stop(); }); t.start(60000); return a.exec(); }