QSignalMapper is definite option. Connect all button's clicked() to a mapper's map(). Map each button to an integer 0..(GRID_SIZE^2-1). In the slot connected to mapped(int) derive the row/column from the integer.
QSignalMapper is definite option. Connect all button's clicked() to a mapper's map(). Map each button to an integer 0..(GRID_SIZE^2-1). In the slot connected to mapped(int) derive the row/column from the integer.
Bookmarks