Answer the question
In order to leave comments, you need to log in
How to run QProcess::start() from a non-main thread?
Good day!
And again I have a question. Because I'm too inexperienced and on the go, I don't know how to google correctly.
How to run QProcess::start() from a non-main thread? And the name is from QConcurrent::run()
I do this:
QConcurrent::run([=]() {
QProcess proc;
proc.start(...);
});
Answer the question
In order to leave comments, you need to log in
QProcess proc;
proc.startDetached(...);
proc.waitForStarted();
OrQProcess proc;
proc.start(...);
proc.waitForStarted();
proc.waitForFinished(-1);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question