[Interest] Is there a way of having a global signal spy?

Jeffrey Walton noloader at gmail.com
Wed Dec 20 11:34:26 CET 2023


On Wed, Dec 20, 2023 at 4:13 AM Nuno Santos <nuno.santos at imaginando.pt> wrote:
>
> Sometimes I feel myself in the dark regarding signals being emitted.
>
> Sometimes because of refactors and things that change, signals are being emitted and we are not aware of.
>
> Is there any way of easily making all the emitted signals being traced on the console when a Qt app is running?
>
> Has anyone ever crossed this specific problem/need?

QSignalSpy may be helpful. See
<https://doc.qt.io/qt-5/qsignalspy.html> and friends.

Jeff


More information about the Interest mailing list