[SOLVED] Multiple QCombobox signal/slot connection
-
Hi All!
I have a QTableView with QComboboxes for each of column on its first row. I have registered currentIndexChanged() signal to its respective slots for each comboboxes. The number of comboboxes is dynamic. Is there any way to receive handle of the combobox that calls currentIndexChanged()?
Thanks a lot in Advance! -
@navap said:
Hi and welcome
You can get the sender using QObject::sender() and cast it to a combobox.
or use a SignalMapper
http://doc.qt.io/qt-4.8/signalsandslots.html#advanced-signals-and-slots-usage