Qt 6.11 is out! See what's new in the release
blog
[SOLVED] Multiple QCombobox signal/slot connection
General and Desktop
3
Posts
2
Posters
2.2k
Views
2
Watching
-
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