Yeah. I think that is the reason. I have multiple widgets and some widgets are created in another widget. So I need to arrange these shortcuts with event filter or something like that I do not know yet. Thanks for replies.
On Tue, May 26, 2015 at 8:14 PM, Matthew Woehlke < mw_tr...@users.sourceforge.net> wrote: > On 2015-05-26 09:10, Berkay Elbir wrote: > > 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. > > > > [...] when I press "Delete" button, it sometimes [has the event type] > > KeyRelease instead of Shortcut then I press again, it [is Shortcut]. > > Do you have a QAction / QShortcut with the key sequence 'del'? Does the > behavior change based on what widget has focus? Or whether some other > widget is disabled or not? > > My first guess is that there is a QShortcut somewhere that is set to > consume the delete key, that sometimes is "active" (enabled, and in > scope w.r.t. its context given the widget that has focus) and sometimes > is not, and that is what causes the difference you are seeing. > > -- > Matthew > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest