Re: [Interest] How can I block the WindowActivate and FocusIn events when showing window programmatically

2014-11-01 Thread Yili Pan
her move event could sneek in while I was waiting. In our case, we have > the same filter on multiple widgets. > > Warning: I could have made some typo in the process of abstracting the > method from much more complex code... > > -John Weeks > > On Oct 31, 2014, at 7:35 AM, Y

Re: [Interest] How can I block the WindowActivate and FocusIn events when showing window programmatically

2014-10-31 Thread Yili Pan
Thank you! -Yili On Fri, Oct 31, 2014 at 4:01 AM, Bo Thorsen wrote: > Den 30-10-2014 20:30, Yili Pan skrev: > > Hi: > > > > We want to block the widget's WindowActivate and FocusIn event > > triggered by calling its show() function, with Qt4, we used to do >

[Interest] How can I block the WindowActivate and FocusIn events when showing window programmatically

2014-10-30 Thread Yili Pan
Hi: We want to block the widget's WindowActivate and FocusIn event triggered by calling its show() function, with Qt4, we used to do that by setting flag before and after show() and filter out the event in eventfilter based on the flag. But with Qt5, the events are processed asynchronously, we c