Re: [Interest] How to avoid QProcess polling

2015-04-16 Thread Shantanu Tushar
Hi Jeorg, Yep I saw that and I was surprised, thanks for a fix so quickly. <3 Qt Cheers, On Thu, Apr 16, 2015 at 5:32 PM, Joerg Bornemann < joerg.bornem...@theqtcompany.com> wrote: > On 16-Apr-15 13:51, Bo Thorsen wrote: > > > Warning! I have no idea if this is evil or not. Try and google the >

Re: [Interest] How to avoid QProcess polling

2015-04-16 Thread Joerg Bornemann
On 16-Apr-15 13:51, Bo Thorsen wrote: > Warning! I have no idea if this is evil or not. Try and google the > consequences if you want to try it out. > > If you really want to get rid of this, you can easily do it: > > qDeleteAll(process->findChildren()); Wow... use at your own risk! ;) Stopping t

Re: [Interest] How to avoid QProcess polling

2015-04-16 Thread Bo Thorsen
On 04/08/2015 09:21 AM, Shantanu Tushar wrote: > Hi, > > Lets say I launch an external application on Windows using this code- > > QProcess p; > p.start("C:\\Windows\\notepad.exe"); > > Once I run the app and notepad (in this example) is launched, there is > constant activity happening in my main p

Re: [Interest] How to avoid QProcess polling

2015-04-08 Thread Joerg Bornemann
On 08-Apr-15 16:48, Thiago Macieira wrote: >> Thanks for the reply. What I understand now is that while the poll for >> reading was done away with, the poll for writing still remains. I have >> created a bugreport at https://bugreports.qt.io/browse/QTBUG-45457 . >> Hopefully I have explained the p

Re: [Interest] How to avoid QProcess polling

2015-04-08 Thread Thiago Macieira
On Wednesday 08 April 2015 20:06:38 Shantanu Tushar wrote: > Thanks for the reply. What I understand now is that while the poll for > reading was done away with, the poll for writing still remains. I have > created a bugreport at https://bugreports.qt.io/browse/QTBUG-45457 . > Hopefully I have expl

Re: [Interest] How to avoid QProcess polling

2015-04-08 Thread Shantanu Tushar
Thanks for the reply. What I understand now is that while the poll for reading was done away with, the poll for writing still remains. I have created a bugreport at https://bugreports.qt.io/browse/QTBUG-45457 . Hopefully I have explained the problem correctly there. On Wed, Apr 8, 2015 at 4:18 PM,

Re: [Interest] How to avoid QProcess polling

2015-04-08 Thread Joerg Bornemann
On 08-Apr-15 09:21, Shantanu Tushar wrote: > Lets say I launch an external application on Windows using this code- [...polling in QProcess...] This polling code is there for historical reasons. It's a naive way to simulate a socket notifier for stdin. If there's no data to write the _q_notified

[Interest] How to avoid QProcess polling

2015-04-08 Thread Shantanu Tushar
Hi, Lets say I launch an external application on Windows using this code- QProcess p; p.start("C:\\Windows\\notepad.exe"); Once I run the app and notepad (in this example) is launched, there is constant activity happening in my main process (which I found using http://technet.microsoft.com/en-in