I am creating SpinBox and then I am trying to make it visible inside my MainWindow. Is it any way to do it?
Basically I am creating double array of Spinboxes dynamically in loop like this
array=new QSpinBox *[y+1];
and in another loop like this
array[i]=new QSpinBox[x+1];
which works fine. And now I'd like to show it on main window,with geometry set.
When I do
array[i][j].show()
It generates new windows. Is there a way to do it?
Ps. Basically I want to generate Matrix on screen, so when user press button it switch from 2x2 SpinBoxes to 3x3 SpinBoxes. So in
void MainWindow::on_pushButton_clicked()
I want to generate SpinBoxes on MainWindow. \
Thanks for help