
Originally Posted by
resal
I think this is the case. I 've played with setupChild Process() but I couldn't figured it out how to use it.
You have to create a QProcess subclass and use that new class instead.
class UnbufferedProcess
: public QProcess{
protected:
void setupChildProcess()
{
::setbuf( stdout, 0 );
}
};
class UnbufferedProcess : public QProcess
{
protected:
void setupChildProcess()
{
::setbuf( stdout, 0 );
}
};
To copy to clipboard, switch view to plain text mode
But as I said, I'm not sure if it's going to help.

Originally Posted by
resal
The first one, I think, is the solution. I tried to find some example of its usage, so I search koders, which didn't help me a lot.
You use it just like QProcess, but I'm not sure if it solves your problem. I think that this class is useful if the process you want to start insists on reading from the terminal. Nevertheless, try it.
Bookmarks