PDA

View Full Version : Changing default event handler name



mabeeh
21st April 2008, 14:23
I have a QPushButton that I want to change the default event handler name from on_btn_pressed to be the event handler another widget is currently assigned. Both widgets do the same task and I don't want to have to have two event handler's that do the same thing. Please help. Thanks!

wysota
21st April 2008, 15:18
You can assign multiple signals to the same slot, if that's what you're asking about. Just use QObject::connect to connect signals and slots and not the automatic connections feature.