开发者

qProcess writing after closing write channel

开发者 https://www.devze.com 2023-03-24 21:58 出处:网络
I\'m starting a new QProcess and writing some data into it and closing it to get the effect. It works OK, but then I need to write some more data. This doesn\'t works, because WriteChannel is already

I'm starting a new QProcess and writing some data into it and closing it to get the effect. It works OK, but then I need to write some more data. This doesn't works, because WriteChannel is already closed.

QProcess *_helpProcess = new QProcess();
QStringList arguments;
_helpProcess->start("../bin/help_app", arguments);
_helpProcess->write(page.toStdString().c_str());
_helpProcess->closeWriteChannel();

How to fix the problem? Can I reopen the channel in s开发者_Python百科ome way?


Once you close the channel you close the pipe between processes. There is no way back !

0

精彩评论

暂无评论...
验证码 换一张
取 消