[Development] QEvent problem

Thiago Macieira thiago.macieira at intel.com
Tue May 26 17:03:28 CEST 2015


On Tuesday 26 May 2015 16:10:08 Berkay Elbir wrote:
> 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?

Not sure I understand you. If you have all five cases leading to the same code, 
how can you even tell which one it was?
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list