Hello,

I am new to QT and I just wanted to ask if there is some way of changing the value of an integer as a slot when your signal is a QSpinBox

Basically I am trying to do something like this:

int rollangle ;
QSpinBox *spinrotate = new QSpinBox;
spinrotate->setRange(0,180);
QObject::connect(spinrotate,SIGNAL(valueChanged(in t)),rollangle,SLOT(setValue(int)));

Off course I realize this is not how its supposed to be done since, as far as I know, both signal and slot should be of the same type.

But I need the integer rollangle to change with spinrotate value.
Because I am implementing a Qtransform::rotate function after this and i want the rotation to change every time spinrotate is changed

I would be really grateful if someone can help me with this!