[Qgis-developer] pyQT combo box & QGIS plug-in signal
argumentquestion
Camilo Polymeris
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[1] 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.
Regards,
Camilo
[1] http://doc.qt.nokia.com/4.7/qsignalmapper.html
More information about the Qgis-developer
mailing list