Use QSignalMapper. You'll connect all your buttons to the mapper and give each one an Id. Then when the button is clicked, it will call your function with that Id as parameter.
Use QSignalMapper. You'll connect all your buttons to the mapper and give each one an Id. Then when the button is clicked, it will call your function with that Id as parameter.
nearlyNERD (7th March 2010)
Qt Code:
To copy to clipboard, switch view to plain text mode
The signature of a signal must match the signature of the receiving slot.
Bookmarks