After you create button, you could create connections between button's clikced and slot which you want to do.
After you create button, you could create connections between button's clikced and slot which you want to do.
Read about QObject::connect, QObject::sender and QSignalMapper.
Bookmarks