Syntax for QspinBox connection
Solved
General and Desktop
-
@summit
I would guessvoid on_nameOfSpinBox_valueChanged();
because of void QSpinBox::valueChanged(int i).
You are achieving this because of the behaviour of Qt Designer doing "auto-connects" of signals to slots based on what the widget is named and what the signal is named. This is generally considered inadvisable (e.g. try changing the name of your widget in Designer and see what happens),
Despite the apparent convenience of this approach in Designer, most of us would suggest you simple do not use the signal/slot connection mechanism it offers and rather put the necessary
connect()
statements into your code explicitly instead.