Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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(); }