1 Attachment(s)
Problem in capturing the event double click on a "QDateEdit".
Hello everyone,
I have a problem I would like to capture the event double click on the widget QDateEdit, to do this I wrote the following code:
Code:
Q_OBJECT
public:
~MyDateEdit();
};
Code:
#include "mydateedit.h"
}
MyDateEdit::~MyDateEdit(){
}
void MyDateEdit
::mouseDoubleClickEvent(QMouseEvent *e
){ QMessageBox::information(0,
"",
"I captured the event double click");
}
then I expect that at any point of the QDateEdit if I make a double click would display the message "I captured the event double click" ..... but it is not. In fact the message only appears if I do double click on the arrows to increase and decrease QDateEdit. Some of you could explain to me what's wrong?
Thank you all.
Bye.
Re: Problem in capturing the event double click on a "QDateEdit".
Hello,
Please could you tell me if that the code I attached, it behaves like me. Or you work correctly : that at any point in the QDateEdit you do a double click you see the message "I captured the event double click".