problem with KProcess QT signals
Boris Duerner
Marc.Duerner at student.shu.ac.uk
Tue Jun 18 17:59:30 BST 2002
Hi,
The problem is multiple connects. Check that
you call connect() only once on existing objects. The connection will persist
until the object is deleted. But if your object stays alive and that
slot/function which contains the connect() call is called again, then you
will connect it again and again and again... every connection means a new
function call! either use disconnect() or put connect() at a different place.
If you have further questions can you show some of your code?
regards,
Marc
On Monday 17 June 2002 18:23, you wrote:
> hi everybody ......
>
> i used the kprocess class to run and keep track of a child process in my
> application so i used the "recievedstderr" signal to recieve the output
> error in a certain buffer and connected it to a certain slot that
> accumulates this buffer in a string that i will use to create a messagebox
> .....also i used the "processexited" signal to do some actions when this
> process exits and i tried it and everything works perfectly but only for
> the 1st time::::
>
> the child process is created when i click a certain button which i have
> connected it to certain slot that make this.............
>
> the problem:
> when the process exits for the 1st time the slot that is connected to the
> "processexited" signal is called one time ..... and then when it exits in
> the second time the slot is called two times and in the third time the slot
> is called three times and so on till infenity........................that
> means that the signal processexited accumulates with that of the last
> process.........!!!!!!!!!!!!!!!!!
>
> i dont know why this senario happens : if anyone can interpret or solve
> this problem i will be glad ...
>
> any help is appreciated.
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list