[Qgis-developer] pyQT combo box & QGIS plug-in signal
cpolymeris at gmail.com
Fri Apr 22 20:10:14 EDT 2011
While the QObject.sender() method should work, it is not thread safe.
The QSignalMapper class seems to do what you want, too, *if* I
understand what you are saying correctly.
Another option would be to create an list of slots, something like:
changeValueSlots = [lambda x: changeValue(x, cb) for cb in comboBoxList]
Then connect each sender to a different slot in that list.
More information about the Qgis-developer