开发者

qProcess writing after closing write channel

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜