Hello folks,
how can I manage, that every button sends some idenification (e.g. his index in the array) to the console, when it is clicked?
Hello folks,
how can I manage, that every button sends some idenification (e.g. his index in the array) to the console, when it is clicked?
There are a couple of ways to do this:
1. Subclass QPushbutton, create a setting for an ID, implement custom signals etc...
2. Use a QDialogButtonBox
3. Use a QSignalMapper
4. Use the sender() function to know who sent the signal
You can also use objectName or some custom property to identify the button![]()
Hi folks,
many thanks for your answers! I could solve the problem.
Erich
Bookmarks