PDA

View Full Version : connect



mickey
25th February 2006, 18:35
Hi, I'd like break a connect (make from designer and re-connect). I try this:
MainForm* w;

disconnect(w->cubeSpinBoxHeight, 0, w, 0 );
w->cubeSpinBoxHeight->setValue(0);
connect(w->cubeSpinBoxHeight, SIGNAL(valueChanged(int)),w, SLOT(w->setCubeDimension(int)));
But connect don't work! The re-connect is the same in the qtDesigner (and at startup it works!). What do I wrong?

jacek
25th February 2006, 19:31
SLOT(w->setCubeDimension(int))
SLOT macro should contain only the signature. Remove the "w->".

Or better try:
w->cubeSpinBoxHeight->blockSignals( true );
w->cubeSpinBoxHeight->setValue(0);
w->cubeSpinBoxHeight->blockSignals( false );