Qt 6.11 is out! See what's new in the release
blog
[SOLVED] How to delay a QProcess for 1 minute ?
General and Desktop
3
Posts
2
Posters
2.8k
Views
1
Watching
-
Hi,
How to delay a QProcess for 1 minute ?
void Read(QString file){ QProcess process; process.startDetached(file); } -
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(); }