Re: [Development] QEvent problem

2015-05-26 Thread Thiago Macieira
On Tuesday 26 May 2015 19:23:02 Berkay Elbir wrote: > I simplified the event handler function. This is an event handler of a > widget and there are different processes for every event case. In my > widget, I catch events and doing something in terms of them. For example, > as I said before I presse

Re: [Development] QEvent problem

2015-05-26 Thread Berkay Elbir
I simplified the event handler function. This is an event handler of a widget and there are different processes for every event case. In my widget, I catch events and doing something in terms of them. For example, as I said before I pressed "Delete" button of keyboard, type of event ( e->type() ) i

Re: [Development] QEvent problem

2015-05-26 Thread Thiago Macieira
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 f

[Development] QEvent problem

2015-05-26 Thread Berkay Elbir
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