PDA

View Full Version : Using double click in QPushButton



nikbits
16th September 2011, 10:37
Hello everyone,
I want to implement a double click signal for push buttons that I create. I have read about QWidget::mouseDoubleClickEvent , but am unable to understand how to use this. Can someone help me out with a sample code for the same ?

wysota
16th September 2011, 11:28
void MyButton::mouseDoubleClickEvent() {
emit doubleClicked();
}