I\'m just learning PyQt and looking at the Signals and Slots mechanism. I\'m a bit baffled by the verbose syntax. Why do we have:
self.connect(dial, SIGNAL(\
An even shorter way is to assign the signal name to the function in the keyword arguments of the constructor e.g. QDial(valueChanged=spinbox.setValue). PyQt will automatically connect the valueChanged() signal to spinbox.setValue().
QDial(valueChanged=spinbox.setValue)
valueChanged()
spinbox.setValue()