Passing data from a signal to a slot function
So I have a signal:
Q_SIGNAL void MediaSourceChanged( MediaSource source );
and a slot:
Q_SLOT void onMediaSourceChanged( MediaSource source );
I want to get the value passed to the signal inside of the slot function. What is the easiest way to do this? If it matters, MediaSource is an enum value type.
Do you have any problem using source in your slot implementation ?
I actually figured it out, what I had worked. The problem was I am using QDbus with an interface generated from an introspectable XML file which was not being properly updated.