ramstormrage
30th April 2008, 03:51
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,
connect(mnhSpinBox, SIGNAL(valueChanged(int)), mxhSpinBox, SLOT(setValue(int)));
connect(mnsSpinBox, SIGNAL(valueChanged(int)), mxsSpinBox, SLOT(setValue(int)));
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.
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,
connect(mnhSpinBox, SIGNAL(valueChanged(int)), mxhSpinBox, SLOT(setValue(int)));
connect(mnsSpinBox, SIGNAL(valueChanged(int)), mxsSpinBox, SLOT(setValue(int)));
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.