I have a problem with QDateEdit. I want to snap its contents when it looses focus. Since QDateEdit has got only one signal,
void valueChanged ( const QDate & date ) wich is not very usefull for my purpose
I have tried to reimplement bool FD_KoderWidget::eventFilter( QObject *obj, QEvent *ev )
Inside eventFilter, I do my work if ev is a QEvent::FocusOut, and obj is my QDateEdit
otherwise I just pass the event on to QWidget::eventFilter(....)
The problem seems to be that QDateEdit never produces an event.
After a lot of thinking and various modifications of my code, I tried to simply replace QDateEdit with a QLineEdit . Then my code worked perfectly well.
What could be the problem with QDateEdit?
Bookmarks