Re: [Interest] Piping data between QProcesses

2014-05-28 Thread qt . dantec
Le Sat, 24 May 2014 13:50:45 -0700, Thiago Macieira thiago.macie...@intel.com écrivait: Em sáb 24 maio 2014, às 19:15:51, Petko Ditchev escreveu: [...] I guess I can't call this function a few times for different processes though ? That question doesn't make sense. Each process has exactly

Re: [Interest] Piping data between QProcesses

2014-05-28 Thread Thiago Macieira
Em qua 28 maio 2014, às 23:07:41, qt.dan...@free.fr escreveu: Le Sat, 24 May 2014 13:50:45 -0700, Thiago Macieira thiago.macie...@intel.com écrivait: Em sáb 24 maio 2014, às 19:15:51, Petko Ditchev escreveu: [...] I guess I can't call this function a few times for different processes

Re: [Interest] Piping data between QProcesses

2014-05-28 Thread Petko Ditchev
I'd love to give back to the project, but I'm not confident I know enough on the topic to write the method myself. I started reading some in-depth stuff on pipes,etc. very recently and still haven't read much on sockets. Petko On 5/29/2014 1:05 AM, Thiago Macieira wrote: Em qua 28 maio 2014,

Re: [Interest] Piping data between QProcesses

2014-05-28 Thread Thiago Macieira
Em qui 29 maio 2014, às 01:56:48, Petko Ditchev escreveu: I'd love to give back to the project, but I'm not confident I know enough on the topic to write the method myself. I started reading some in-depth stuff on pipes,etc. very recently and still haven't read much on sockets. This is

Re: [Interest] Piping data between QProcesses

2014-05-28 Thread Petko Ditchev
Thank you for your guidance but I seriously have no idea what HANDLEs are , nor how to write code that contains elements differing for the different platforms, nor how to write unit tests. I guess I can read up on it, but it would take a lot of time and I just can't commit to that right now.

Re: [Interest] Piping data between QProcesses

2014-05-28 Thread Thiago Macieira
Em qui 29 maio 2014, às 04:13:26, Petko Ditchev escreveu: Thank you for your guidance but I seriously have no idea what HANDLEs are , nor how to write code that contains elements differing for the different platforms HANDLE is a void*. That's what the Win32 API uses to signal kernel handles.

[Interest] Piping data between QProcesses

2014-05-24 Thread Petko Ditchev
Hello, I'm writing a data analysis application which consists of a few filters which pass data to each other and to a GUI. At this point it's pretty much an input ( which is actually 'arecord' , the audio recording CLI tool in a QProcess) which should pipe the data to a noise reduction filter

Re: [Interest] Piping data between QProcesses

2014-05-24 Thread Alan Ezust
You can connect one QProcess to another with a pipe this way: void QProcess::setStandardOutputProcess(QProcess * destination) You can also create one QDataStream from another QIODevice: QDataStream::QDataStream(QIODevice * d) Does that help? ___

Re: [Interest] Piping data between QProcesses

2014-05-24 Thread Petko Ditchev
I knew there was such a function, and I'd overlooked it. Thank you very much! I guess I can't call this function a few times for different processes though ? At least that's what I make out from the description in the documentation. So I'll probably use a function to transfer the data via my

Re: [Interest] Piping data between QProcesses

2014-05-24 Thread Thiago Macieira
Em sáb 24 maio 2014, às 19:15:51, Petko Ditchev escreveu: I knew there was such a function, and I'd overlooked it. Thank you very much! I guess I can't call this function a few times for different processes though ? That question doesn't make sense. Each process has exactly one stdout. At