Force QPushButton release
-
Hi all,
I have a QPushButton and 2 connection to its signal pressed and released:@
connect(button, SIGNAL(pressed()), this, SLOT(button_pressed()));
connect(button, SIGNAL(released()), this, SLOT(button_released()));
@then I have a timer that sometimes disable the button.
If I press the button and it become disabled I need to call button_released().
I need something like this:
@
connect(button, SIGNAL(disabled()), this, SLOT(button_released()));
@but button hasn't "disabled" signal.