Hello and good day.

Id like to seek help regarding a dialog that doesnt obey its signals and slots connections.
I have this code for the dialog connecting different spinboxes,

Qt Code:
  1. connect(mnhSpinBox, SIGNAL(valueChanged(int)), mxhSpinBox, SLOT(setValue(int)));
  2. connect(mnsSpinBox, SIGNAL(valueChanged(int)), mxsSpinBox, SLOT(setValue(int)));
To copy to clipboard, switch view to plain text mode 

Now when i build my program, it doesnt fulfill its intended purpose which is to update the value of the other spin box.

BUT, when I connect the signals and slots via the designer it works. Now I have built other dialogs but I didnt encounter any problems like this.

Any help would be greatly appreciated.

P.S.: Ive read the FAQ about the signals and slots but it didnt help me.