Peter Kümmel wrote:

> Jean-Marc Lasgouttes wrote:

>> A naive question: what does QProcess gives us that popen would not
>> provide for this particular use case? Or is it that windows does not
>> provide popen?

It does, and LyX already uses it.
 
> I don't know how to get the output of the process.

Use runCommand() from support/filetools.cpp. The only drawback is that it
does not handle stderr.

Currently there are already three methods to lauch a child process in LyX:

- runCommand()
- The ForkedCall class
- The ISpell class

IMNSHO at least one (better two) of these methods should go, and adding a
forth one is definitely wrong. If you are really going to use QProcess then
it should replace at least one of these child launchers.


Georg

Reply via email to