Redirects the process' standard output to the file fileName. When the redirection is in place, the standard output read channel is closed: reading from it using read() will always fail, as will readAllStandardOutput().
你调用的方法不对,应该是在 start调用前调用setProcessChannelMode。具体查看Qt 文档
https://doc.qt.io/qt-6/qprocess.html#setProcessChannelMode
你调用的方法不对,应该是在 start调用前调用setProcessChannelMode。具体查看Qt 文档
https://doc.qt.io/qt-6/qprocess.html#setProcessChannelMode