I'm trying to dynamically add spinboxes but I need them to be on a different tab which I have created in the designer. Is it possible for me to add them to a tab instead of the main window?
QSpinBox *spin[10];
for (int i=0; i < 10; i++)
{
spin[i] = new QSpinBox(this);
spin[i]->setValue(i);
spin[i]->setGeometry(QRect(QPoint(100,100),QSize(50,50))); //todo: change position
spin[i]->show();
}
QTabWidget?