yes I actually just figured it out via my program lol
on the header put this:
Qt Code:
  1. QList<QSpinBox*> spinBoxes;
  2. QSpinBox *spinBox;
To copy to clipboard, switch view to plain text mode 
and put this on your mainfunction dbinfo
Qt Code:
  1. QList<int> spinBoxesValue;
To copy to clipboard, switch view to plain text mode 
and on your push button you are creating the spinboxes do this
Qt Code:
  1. spinBox = new QSpinBox;
  2. spinBoxes << spinBox;
  3. for(int i = 0; i<spinBoxes.size();i++){
  4. //add your widget how ever I am doing it by something like this
  5. layout->addWidget(spinBoxes[i],i+1;0);
  6. //get the value if you want when pressed otherwise put where you are getting
  7. spinBoxesValue << spinBoxes[i]->value();
  8. }
To copy to clipboard, switch view to plain text mode 
then just use a for loop to get the numbers