PDA

View Full Version : Extend a Qt signal?



realdarkman71
3rd December 2010, 10:05
Hi all,

is it possible to extend a Qt signal? The original signal is:


void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus)

I need:


void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus, QString str)

Thx!
Chris

wysota
3rd December 2010, 10:16
No but you can subclass QProcess and add a new signal with the signature you want. Of course you will be responsible for emitting this signal.

realdarkman71
3rd December 2010, 10:29
Ok, thanks for the hint!