Game of life grid size change query
I have created the Game Of Life and I have a 50 by 50 grid which I have set, however I need a pushButton to resize the grid to a value I have typed into the LineEdit, how is this done? I think it has something to do with textChanged and then converting the string to an int but I am unsure how to pass these values into this slot and then ultimately to replace my @grid @ value.
This is the general idea - Yes I know this code will not work but you get the idea.
ui->lineEdit->update(grid[lineEdit][lineEdit]); //Grid is in a different function altogether of course.