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