I've added into Ui_spinForm.h a spinBox->setValue(5); and when i start the widget the value is 5. I've added ui.spinBox->setValue(5); into the spinForm.cpp constructor
Qt Code:
  1. spinForm::spinForm(QWidget *parent):QWidget(parent)
  2. {
  3. ui.setupUi(this);
  4. connect(ui.addPushButton, SIGNAL(clicked()), this, SLOT(setSpinBoxValue()));
  5. ui.spinBox->setValue(3);
  6. }
To copy to clipboard, switch view to plain text mode 

but nothing...