[Development] QEvent problem

Berkay Elbir berkayelbir at gmail.com
Tue May 26 15:10:08 CEST 2015


Hello all,

I want to mention an issue that I have faced. I have an event filter of a
widget and when I press "Delete" button, event types coming to event Filter
changes.

bool  eventFilter(QObject *o, QEvent *e){
switch(e->type()){
case QEvent::MouseButtonPress:
case QEvent::MouseMove:
case QEvent::MouseButtonRelease:
case QEvent::Shortcut:
case QEvent::KeyRelease:

}
return false;
}

My function is like this and when I press "Delete" button, it sometimes
enters KeyRelease instead of Shortcut then I press again, it enters
Shortcut part.

Do you know about this issue? Is this a kind of bug or I use this wrong way?

Thanks in advance,

BE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150526/0739ced1/attachment.html>


More information about the Development mailing list