I'm making the board game Puerto Rico in C++ and Qt. One of the features will be that after they've chosen the Major Role (button 1) each player (3 players in total) kan build a building. So i have a button for each building, is there a way that i get the information (like the name of the button) when the player clicked on it?

Kind regards