There you only connect! In your class SpinVariable you have to add a signal forwarding as said:
Qt Code:
  1. spinvariable::spinvariable(QWidget *parent) :
  2. QWidget(parent)
  3. {
  4. spinbox = new QSpinBox;
  5. label = new QLabel;
  6.  
  7. QHBoxLayout *layout = new QHBoxLayout;
  8.  
  9. layout->addWidget(label);
  10. layout->addWidget(spinbox);
  11.  
  12. setLayout(layout);
  13. QObject::connect(spinbox, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
  14. }
To copy to clipboard, switch view to plain text mode 
The
Qt Code:
  1. QObject::connect(spin1, SIGNAL(valueChanged(int)), area, SLOT(setposicionX(int)));
To copy to clipboard, switch view to plain text mode 
never came to action, since such a signal is never emitted!