I'm new to handling lambda functions in a qprocess signal-slot environment. I'm having a problem with the parameters of the function. In particular with the finished() signal. According to the documentation, it accepts two parameters: def finished (exitCode, exitStatus)
I'm trying somerhing like this:
for i, thing in enumerate(something):
self.proc_codificar.append(Qprocess())
#(code here)
self.proc_codificar[i].finished.connect(lambda exitCode, exitStatus, proc=self.proc_codificar[i]: self.codificar_fin(exitCode, exitStatus, proc))
#(code here)
And on process finished I want to know exitCode, exitStatus, and the process itself
def self.proc_codificar(self, exitCode, exitStatus, proc)
print(exitCode)
print(exitStatus)
print(proc)
But this way is not working. What is the correct way to handle the lambda function?