qt button to emit multiple signals
问题 is there a Qt (I use Qt 4.7.1) widget that emit signals (not just one at the first time) while it is pressed and stops when the user releases the mouse? something like mousedown events in standard intervals? or do I have to implement this with a qtimer? thanks 回答1: Check out QAbstractButton::autoRepeat and autoRepeatInterval. It should be exactly what you need and is available for all buttons. 回答2: You have to implement something that fire the event until the user release the mouse. I suggest