Here is my scenario :

1 . I have a MainWindow
2. I have a QPushButton on it
3. When i press it, i want to dinamically create N PushButtons.
4. When i press any of those buttons, i want something specific to happen ( like a slot with the name of the button that was pressed in a parameter or smth like that ) .

How can i make this ?