Hi,
Is it possible to send a lot of signals from a QPushButton if we still pressing the button all the time?
Thanks
Printable View
Hi,
Is it possible to send a lot of signals from a QPushButton if we still pressing the button all the time?
Thanks
Woudn't it be easier to fire a QTimer on the press and release of the button and let the timer fire the events are your expected intervals?
How can I do this?
check this out
Code:
connect(timer, SIGNAL(timeout()), this, SIGNAL(MySignal()); //Note: signal connected to signal connect(button, SIGNAL(pressed()), timer, SLOT(start())); connect(button, SIGNAL(released()), timer, SLOT(stop()));