Hi.
I wanted to make a check box widget which could emit a signal with an index whenever it's checked/unchecked.

I made a new class derived from QCheckBox which contains a data member that holds the box's index.

I want to override "stateChanged(int) signal to be "stateChabged(int,int)" so it will contain the index.

I created a new signal in the Qt Designer (using the "edit" button in the Slots\Signals dialog).
I added the overriding definition of the signal to the class header file.

How do I proceed? Does the signal function has to have a body and if so what does it contain?

The Qt assistant documentation is very lacking.

Thank you.