Details
Description
The behavior of QProcess::waitForFinished() seems to change when there's a QWebEngineView. The attached example starts a program (/bin/cat) with QProcess, calls QProcess::closeWriteChannel() and then waits for the process to finish using QProcess::waitForFinished().
If QWebEngineView isn't involved, QProcess::waitForFinished() returns true without noticable delay. If however an otherwise unrelated QWebEngineView is created and provided with a URL (main.cpp:13-14), QProcess::waitForFinished() times out and returns false. During the timeout interval ps shows the started process as <defunct>. Qt prints the following output to the console:
QProcess: Destroyed while process ("/bin/cat") is still running.
After that, it still takes some time before the program exits.